locked
Display data in TreeView from multiple Classes RRS feed

  • Question

  • Hey Developer


    I have to display data in my TreeView like


    Country (Class Group - ObservableCollection)

    --- Canton (Class Group - ObservableCollection)

    ------- City (Class Group - ObservableCollection)

    ---------- Persons (Class Person - ObservableCollection)

    --- Canton (Class Group - ObservableCollection)


    how could i work this out? i've tried it with a HierarchicalDataTemplate, but here i can't display my Persons..


    Thanks for your help!



    Friday, August 27, 2010 10:48 AM

Answers

  • Hi,

    If Persons is not a part of hyerarchical data, you may consider adding it manullay in code behind 

    Sunday, August 29, 2010 11:27 PM