Class TreeViewBehaviors
Implements an attached property bound to the selected item in a TreeView.
Inherited Members
Namespace: Phoenix.BotBrain.Controls
Assembly: Phoenix.Plugin.BotBrain.Lists.dll
Syntax
public static class TreeViewBehaviors
Remarks
Adapted from http://stackoverflow.com/questions/1000040/data-binding-to-selecteditem-in-a-wpf-treeview.
Fields
View SourceSelectedItemProperty
The SelectedItem dependency property.
Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Methods
View SourceGetSelectedItem(DependencyObject)
Gets the SelectedItem property value.
Declaration
public static object GetSelectedItem(DependencyObject dependencyObject)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | dependencyObject | Object that the property is associated with. |
Returns
Type | Description |
---|---|
object | The property value. |
SetSelectedItem(DependencyObject, object)
Sets the SelectedItem property value.
Declaration
public static void SetSelectedItem(DependencyObject dependencyObject, object value)
Parameters
Type | Name | Description |
---|---|---|
DependencyObject | dependencyObject | Object that the property is associated with. |
object | value | Value to assign. |