Please show me How to get ParentNode of a XamDataTreeNode?
Thanks
You need to use XamTreeItem object. Here is an example to reference parent item in SelectionChanged event.
if (xamTree1 != null && xamTree1.SelectedItems != null && xamTree1.SelectedItems.Count > 0) { XamTreeItem item = xamTree1.ResolveXamTreeItem(xamTree1.SelectedItems[0]); if (item != null) item.IsExpanded = true; }
Sam
Thanks for your help. but there is No ResolveXamTreeItem method for XamDataTree. The question for XamDataTree not XamTree.