Wednesday, July 27, 2011

WPF- Retreive Parent TreeView Node Item from Child node

To retreive parent tree view item from child nodes try following:

TreeViewItem parent = (tree.SelectedItem as TreeViewItem).Parent as TreeViewItem;

int iValue = parent.ItemID;

No comments:

Post a Comment

If you’re using Visual Studio to build your .NET MAUI app on a Mac, locating the IPA (iOS App Package) file can be a bit tricky

  If you’re using   Visual Studio   to build your   .NET MAUI   app on a   Mac , locating the   IPA (iOS App Package)   file can be a bit tr...