Selector.GetIsSelected Method (DependencyObject)

 

Gets the value of the IsSelected attached property that indicates whether an item is selected.

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

[AttachedPropertyBrowsableForChildrenAttribute]
public static bool GetIsSelected(
	DependencyObject element
)

Parameters

element
Type: System.Windows.DependencyObject

Object to query concerning the IsSelected property.

Return Value

Type: System.Boolean

Boolean value, true if the IsSelected property is true.

.NET Framework
Available since 3.0
Return to top
Show: