Пример #1
0
 private void DesktopViewModel_SelectionChanged(ElementViewModel obj)
 {
     SelectedItemDetails = obj.ItemDetails;
     OnPropertyChanged(() => SelectedItemDetails);
 }
Пример #2
0
 private ElementViewModel FindElement(ElementViewModel parent, AutomationElement element)
 {
     return(parent.Children.FirstOrDefault(child => child.AutomationElement.Equals(element)));
 }