Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
XamDataTree doesn't work for me.
posted

I've created a hierarchical data structure using ObservableCollection<T> where each item contains a public ObservableCollection<T> to connect to the next node.  The data structure is similar to the one in the DataUtil class which is in your DataTreeBinding example.

The problem is that only the root node gets displayed and I don't see an Expand Icon where I know there are sub-nodes in the data. What is the requirement in order to get the XamDataTree to recognize there are sub-nodes?

I'm binding in code like this:
this.MyTree.DataContext = m_menuData;
this.MyTree.ItemsSource = m_menuData.Centers;
where m_menuData is the object that contains the data and m_menuData.Centers
is the ObservableCollection<T> that contains the data hierarchy.

 

Parents Reply Children