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
XamTree property of XamTreeItem
posted

I have an XamTree to which I add the XamTreeItems in code (not Databinding).  I have found that the property xamTreeItem.XamTree doesn't get set when I add an item.  So, for all the items the XamTree property remains null.

Later sometimes when I Insert a new item the XamTree property of that item does get set.

I had expected that the XamTree property would always reference the XamTree that the XamTreeItem is a child of.

Is that not the intent?  What am I missing?

It would be nice to be able to do something like the following:

xamTreeItem.XamTree.ActiveItem = xamTreeItem;