To retreive parent tree view item from child nodes try following:
TreeViewItem parent = (tree.SelectedItem as TreeViewItem).Parent as TreeViewItem;
int iValue = parent.ItemID;
Sample Code: if (Email.Default.IsComposeSupported) { string subject = "Hello!"; string body = "Excellent!"; ...
No comments:
Post a Comment