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

适用于