SetIsSelected Method

Selector.SetIsSelected Method (DependencyObject, Boolean)

 

Sets a property value that indicates whether an item in a Selector is selected.

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

public static void SetIsSelected(
	DependencyObject element,
	bool isSelected
)

Parameters

element
Type: System.Windows.DependencyObject

Object on which to set the property.

isSelected
Type: System.Boolean

Value to set.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft