C# Class a7DocumentDbStudio.Utils.a7TreeViewHelper

Afficher le fichier Open project: alekkowalczyk/a7DocumentDbStudio

Méthodes publiques

Свойство Type Description
IsMouseDirectlyOverItemProperty System.Windows.DependencyProperty

Méthodes publiques

Méthode 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

Méthode 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 méthode

public static ApplyActionToAllTreeViewItems ( this itemsControl, Action itemAction ) : void
itemsControl this
itemAction Action
Résultat void

ContainerFromItem() public static méthode

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

ExpandAll() public static méthode

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

ExpandAll2() public static méthode

public static ExpandAll2 ( this treeView ) : void
treeView this
Résultat void

GetIsMouseDirectlyOverItem() public static méthode

public static GetIsMouseDirectlyOverItem ( DependencyObject obj ) : bool
obj System.Windows.DependencyObject
Résultat bool

ItemFromContainer() public static méthode

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

SelectItem() public static méthode

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
Résultat void

SelectOne() public static méthode

public static SelectOne ( this treeView, object item, bool isValue ) : void
treeView this
item object
isValue bool
Résultat void

SelectValue() public static méthode

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
Résultat void

Property Details

IsMouseDirectlyOverItemProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsMouseDirectlyOverItemProperty
Résultat System.Windows.DependencyProperty