Beispiel #1
0
 protected TreeViewItem GetFocusedItem()
 {
     return(TreeViewElementFinder.FindAll(this, false).FirstOrDefault(x => x.IsFocused));
 }
Beispiel #2
0
 public TreeViewItem GetTreeViewItemFor(object item)
 {
     return(TreeViewElementFinder.FindAll(this, false).FirstOrDefault(treeViewItem => item == treeViewItem.DataContext));
 }