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.IsKeyboardFocused参阅UIElement.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.

适用于

另请参阅