Selector.SetIsSelected(DependencyObject, Boolean) 方法

定义

设置指示是否选择 Selector 中的项的属性值。

public:
 static void SetIsSelected(System::Windows::DependencyObject ^ element, bool isSelected);
public static void SetIsSelected (System.Windows.DependencyObject element, bool isSelected);
static member SetIsSelected : System.Windows.DependencyObject * bool -> unit
Public Shared Sub SetIsSelected (element As DependencyObject, isSelected As Boolean)

参数

element
DependencyObject

要对其设置属性的对象。

isSelected
Boolean

要设置的值。

适用于