Show / Hide Table of Contents

Class TreeViewBehaviors

Implements an attached property bound to the selected item in a TreeView.

Inheritance
object
TreeViewBehaviors
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

SelectedItemProperty

The SelectedItem dependency property.

Declaration
public static readonly DependencyProperty SelectedItemProperty
Field Value
Type Description
DependencyProperty

Methods

View Source

GetSelectedItem(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.

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX