UIElement.HasEffectiveKeyboardFocus UIElement.HasEffectiveKeyboardFocus UIElement.HasEffectiveKeyboardFocus UIElement.HasEffectiveKeyboardFocus Property

定義

取得值,指出 UIElement 是否具有焦點。Gets a value that indicates whether the UIElement has focus.

protected public:
 virtual property bool HasEffectiveKeyboardFocus { bool get(); };
protected internal virtual bool HasEffectiveKeyboardFocus { get; }
member this.HasEffectiveKeyboardFocus : bool
Protected Friend Overridable ReadOnly Property HasEffectiveKeyboardFocus As Boolean

屬性值

如果 UIElement 具有焦點,則為 true;否則為 falsetrue if the UIElement has focus; otherwise, false.

備註

子類別可以覆寫這個屬性來指定項目有鍵盤焦點時。Subclasses can override this property to specify when the element has keyboard focus. 這很有用,當您UIElement包含可以有鍵盤焦點的項目和您希望它具有焦點的報表項目。This is useful when your UIElement contains elements that can have keyboard focus and you want your element to report that it has focus.

適用於