private static TreeViewSelectionChangedCommandBehavior GetOrCreateBehavior(TreeView treeView)
        {
            TreeViewSelectionChangedCommandBehavior behavior =
            treeView.GetValue(SelectCommandBehaviorProperty) as TreeViewSelectionChangedCommandBehavior;

              if (behavior == null)
              {
            behavior = new TreeViewSelectionChangedCommandBehavior(treeView);
            treeView.SetValue(SelectCommandBehaviorProperty, behavior);
              }
              return behavior;
        }
 private static TreeViewItem GetStartItem(TreeView element)
 {
     return (TreeViewItem)element.GetValue(StartItemProperty);
 }
 public static IList GetSelectedItems(TreeView element)
 {
     return (IList)element.GetValue(SelectedItemsProperty);
 }
 public static object GetCommandParameter(TreeView treeView)
 {
     return treeView.GetValue(CommandParameterProperty);
 }
 public static ICommand GetCommand(TreeView treeView)
 {
     return treeView.GetValue(CommandProperty) as ICommand;
 }
Esempio n. 6
0
		public static object GetCurrentItem (TreeView treeView)
		{
			return treeView.GetValue (CurrentItemProperty);
		}
Esempio n. 7
0
 public static bool GetSelectedItemSync (TreeView d)
 {
     return (bool)d.GetValue(SelectedItemSyncProperty);
 }
Esempio n. 8
0
 public static object GetSelectedItem (TreeView d)
 {
     return (object)d.GetValue(SelectedItemProperty);
 }
Esempio n. 9
0
 public static object GetSelectedItem(TreeView element)
 {
     return element.GetValue(SelectedItemProperty);
 }
Esempio n. 10
0
		public static TreeViewItem GetCurrentTreeViewItem(TreeView treeView)
		{
			return (TreeViewItem)treeView.GetValue(CurrentTreeViewItemProperty);
		}
Esempio n. 11
0
 static List<Action<object>> GetSelectionChangedListeners(TreeView obj)
 {
     return (List<Action<object>>)obj.GetValue(FinishChangedListenersProperty);
 }
 private static TreeViewItem GetStartItem(System.Windows.Controls.TreeView element)
 {
     return((TreeViewItem)element.GetValue(StartItemProperty));
 }
 public static IList GetSelectedItems(System.Windows.Controls.TreeView element)
 {
     return((IList)element.GetValue(SelectedItemsProperty));
 }
Esempio n. 14
0
 public static object GetSelectedItem(TreeView treeView)
 {
     return treeView.GetValue(SelectedItemProperty);
 }