Class TreeViewExtension
- Namespace
- Loehnert.Utility.Extensions
- Assembly
- Loehnert.Utility.dll
Represents a helper class that provides various extensions for the TreeView control.
public static class TreeViewExtension
- Inheritance
-
TreeViewExtension
- Inherited Members
Fields
SelectItemOnRightClickProperty
If this property is 'true' the tree view item will be selected when the user clicks it with the right button.
public static readonly DependencyProperty SelectItemOnRightClickProperty
Field Value
Methods
GetSelectItemOnRightClick(DependencyObject)
Gets a value indicating whether the tree view item should be selected on right click.
public static bool GetSelectItemOnRightClick(DependencyObject d)
Parameters
dDependencyObjectThe dependent object.
Returns
- bool
A value indicating whether the tree view item should be selected on right click.
SetSelectItemOnRightClick(DependencyObject, bool)
Sets a value indicating whether the tree view item should be selected on right click.
public static void SetSelectItemOnRightClick(DependencyObject d, bool value)
Parameters
dDependencyObjectThe dependent object.
valueboolA value indicating whether the tree view item should be selected on right click.