共用方式為


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

要設定的值。

適用於