Esempio n. 1
0
 public static object GetAltSelectedItem(ExplorerTreeView element)
 {
     if (element == null)
     {
         return(null);
     }
     return((object)element.GetValue(AltSelectedItemProperty));
 }
Esempio n. 2
0
 public static void SetAltSelectedItem(ExplorerTreeView element, object value)
 {
     if (element == null)
     {
         return;
     }
     if (value is FSExplorerItem ei)
     {
         value = ei.Info;
     }
     if (element.GetValue(AltSelectedItemProperty) != value)
     {
         element.SetValue(AltSelectedItemProperty, value);
         element.NotifyPropertyChanged("AltSelectedItem");
     }
 }