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 void SetStartItem(TreeView element, TreeViewItem value)
 {
     element.SetValue(StartItemProperty, value);
 }
 public static void SetSelectedItems(TreeView element, IList value)
 {
     element.SetValue(SelectedItemsProperty, value);
 }
 public static void SetCommandParameter(TreeView treeView, object parameter)
 {
     treeView.SetValue(CommandParameterProperty, parameter);
 }
 public static void SetCommand(TreeView treeView, ICommand command)
 {
     treeView.SetValue(CommandProperty, command);
 }
Example #6
0
		public static void SetCurrentItem (TreeView treeView, object value)
		{
			treeView.SetValue (CurrentItemProperty, value);
		}
Example #7
0
 public static void SetSelectedItemSync (TreeView d, bool value)
 {
     d.SetValue(SelectedItemSyncProperty, value);
 }
Example #8
0
 public static void SetSelectedItem (TreeView d, object value)
 {
     d.SetValue(SelectedItemProperty, value);
 }
Example #9
0
 public static void SetSelectedItem(TreeView element, object value)
 {
     element.SetValue(SelectedItemProperty, value);
 }
Example #10
0
		public static void SetCurrentTreeViewItem(TreeView treeView, TreeViewItem value)
		{
			treeView.SetValue(CurrentTreeViewItemProperty, value);
		}
 private static void SetStartItem(System.Windows.Controls.TreeView element, TreeViewItem value)
 {
     element.SetValue(StartItemProperty, value);
 }
 public static void SetSelectedItems(System.Windows.Controls.TreeView element, IList value)
 {
     element.SetValue(SelectedItemsProperty, value);
 }