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

How to upload app to macOS

1. Open Terminal Press Cmd (⌘) + Space , type Terminal , and hit Enter . 2. Navigate to Your Build Output Directory Your .app file is likel...