共用方式為


Selector.GetIsSelectionActive(DependencyObject) 方法

定義

取得值,這個值表示鍵盤焦點是否在 內 Selector

public:
 static bool GetIsSelectionActive(System::Windows::DependencyObject ^ element);
public static bool GetIsSelectionActive (System.Windows.DependencyObject element);
static member GetIsSelectionActive : System.Windows.DependencyObject -> bool
Public Shared Function GetIsSelectionActive (element As DependencyObject) As Boolean

參數

element
DependencyObject

要從中讀取附加屬性的項目。

傳回

Boolean

屬性的值,如果鍵盤焦點在 Selector 之內,則為 true

適用於