Share via


TreeViewItem.IsSelectionActive Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets a value that indicates whether the TreeViewItem has focus.

Namespace:  System.Windows.Controls
Assembly:  System.Windows.Controls (in System.Windows.Controls.dll)

Syntax

'Declaration
Public Property IsSelectionActive As Boolean
public bool IsSelectionActive { get; private set; }

Property Value

Type: System.Boolean
true if this TreeViewItem has focus; otherwise, false. The default is false.

Remarks

Dependency property identifier field: IsSelectionActiveProperty

The IsSelectionActive property is typically used by the VisualStateManager to determine if the item is active.

Version Information

Silverlight

Supported in: 5, 4, 3

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.