Class ArubaTreeView
Implementation of TreeView that uses ArubaTreeViewItem instead of TreeViewItem.
Inheritance
Implements
Inherited Members
Namespace: Phoenix.Aruba.Controls
Assembly: Phoenix.Plugin.Aruba.dll
Syntax
public class ArubaTreeView : TreeView, IAnimatable, ISupportInitialize, IFrameworkInputElement, IInputElement, IQueryAmbient, IContainItemStorage, IAddChild
Constructors
View SourceArubaTreeView()
Initializes a new instance of the ArubaTreeView class.
Declaration
public ArubaTreeView()
Fields
View SourceSelectedDataItemProperty
Using a DependencyProperty as the backing store for SelectedDataItem. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SelectedDataItemProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
View SourceSelectedDataItem
Gets the selected data item. This is implemented to allow data binding (the native TreeView.SelectedItem property is read only and doesn't support binding). This is a publicly read-only property. Use TreeViewSelectionBehavior instead of this property if you need to be able to set selected item (node).
Declaration
[Bindable(true)]
public object SelectedDataItem { get; }
Property Value
Type | Description |
---|---|
object |
Methods
View SourceOnPreviewMouseRightButtonDown(MouseButtonEventArgs)
Used to select node before context menu appears when right-clicking.
Declaration
protected override void OnPreviewMouseRightButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
MouseButtonEventArgs | e | Mouse button event args. |
Overrides
View SourceOnSelectedItemChanged(RoutedPropertyChangedEventArgs<object>)
When the selected item is updated from inside the tree, this method will update the "SelectedDataItem" property.
Declaration
protected override void OnSelectedItemChanged(RoutedPropertyChangedEventArgs<object> e)
Parameters
Type | Name | Description |
---|---|---|
RoutedPropertyChangedEventArgs<object> | e | The event parameter. |