C# Class a7DocumentDbStudio.Utils.a7TreeViewHelper

显示文件 Open project: alekkowalczyk/a7DocumentDbStudio

Public Properties

Property Type Description
IsMouseDirectlyOverItemProperty System.Windows.DependencyProperty

Public Methods

Method Description
ApplyActionToAllTreeViewItems ( this itemsControl, Action itemAction ) : void
ContainerFromItem ( this treeView, object item ) : System.Windows.Controls.TreeViewItem
ExpandAll ( this treeView ) : void

Expands all children of a TreeView

ExpandAll2 ( this treeView ) : void
GetIsMouseDirectlyOverItem ( DependencyObject obj ) : bool
ItemFromContainer ( this treeView, System.Windows.Controls.TreeViewItem container ) : object
SelectItem ( this treeView, object item ) : void

Searches a TreeView for the provided object and selects it if found

SelectOne ( this treeView, object item, bool isValue ) : void
SelectValue ( this treeView, object value ) : void

Searches a TreeView for the provided object and selects it if found

Private Methods

Method Description
CalculateIsMouseDirectlyOverItem ( DependencyObject item, object value ) : object
ContainerFromItem ( ItemContainerGenerator parentItemContainerGenerator, System.Windows.Controls.ItemCollection itemCollection, object item ) : System.Windows.Controls.TreeViewItem
ExpandAndSelectItem ( ItemsControl parentContainer, object itemToSelect, bool isValue, string valuePath, Action beforeSelection, Action afterSelection ) : bool

Finds the provided object in an ItemsControl's children and selects it

ExpandAndSelectItem ( System.Windows.Controls.TreeView treeView, object obj, bool isValue ) : void
ExpandAndSelectItem ( System.Windows.Controls.TreeView treeView, object obj, bool isValue, Action beforeSelection, Action afterSelection ) : void
ExpandSubContainers ( this parentContainer, bool preserveState ) : void

Expands all children of a TreeView or TreeViewItem

ItemFromContainer ( ItemContainerGenerator parentItemContainerGenerator, System.Windows.Controls.ItemCollection itemCollection, System.Windows.Controls.TreeViewItem container ) : object
OnMouseTransition ( object sender, System.Windows.Input.MouseEventArgs args ) : void
OnUpdateOverItem ( object sender, RoutedEventArgs args ) : void
a7TreeViewHelper ( ) : System

Method Details

ApplyActionToAllTreeViewItems() public static method

public static ApplyActionToAllTreeViewItems ( this itemsControl, Action itemAction ) : void
itemsControl this
itemAction Action
return void

ContainerFromItem() public static method

public static ContainerFromItem ( this treeView, object item ) : System.Windows.Controls.TreeViewItem
treeView this
item object
return System.Windows.Controls.TreeViewItem

ExpandAll() public static method

Expands all children of a TreeView
public static ExpandAll ( this treeView ) : void
treeView this The TreeView whose children will be expanded
return void

ExpandAll2() public static method

public static ExpandAll2 ( this treeView ) : void
treeView this
return void

GetIsMouseDirectlyOverItem() public static method

public static GetIsMouseDirectlyOverItem ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
return bool

ItemFromContainer() public static method

public static ItemFromContainer ( this treeView, System.Windows.Controls.TreeViewItem container ) : object
treeView this
container System.Windows.Controls.TreeViewItem
return object

SelectItem() public static method

Searches a TreeView for the provided object and selects it if found
public static SelectItem ( this treeView, object item ) : void
treeView this The TreeView containing the item
item object The item to search and select
return void

SelectOne() public static method

public static SelectOne ( this treeView, object item, bool isValue ) : void
treeView this
item object
isValue bool
return void

SelectValue() public static method

Searches a TreeView for the provided object and selects it if found
public static SelectValue ( this treeView, object value ) : void
treeView this The TreeView containing the item
value object
return void

Property Details

IsMouseDirectlyOverItemProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsMouseDirectlyOverItemProperty
return System.Windows.DependencyProperty