IInputElement.IsKeyboardFocused IInputElement.IsKeyboardFocused IInputElement.IsKeyboardFocused IInputElement.IsKeyboardFocused Property

定義

取得值,指出這個項目是否具有鍵盤焦點。Gets a value that indicates whether this element has keyboard focus.

public:
 property bool IsKeyboardFocused { bool get(); };
public bool IsKeyboardFocused { get; }
member this.IsKeyboardFocused : bool
Public ReadOnly Property IsKeyboardFocused As Boolean

屬性值

如果這個項目具有鍵盤焦點,則為 true;否則為 falsetrue if this element has keyboard focus; otherwise, false.

備註

此介面不是公用的實作。This interface is not intended for public implementation. 如需詳細資訊,請參閱備註IInputElement介面。For more information, see remarks for the IInputElement interface.

中的現有實作Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF)核心 (請參閱 < ContentElement.IsKeyboardFocusedUIElement.IsKeyboardFocused) 建立此屬性為相依性屬性。Existing implementations in the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) core (see ContentElement.IsKeyboardFocused and UIElement.IsKeyboardFocused) establish this property as a dependency property.

適用於

另請參閱