IInputElement.IsKeyboardFocused 属性
定义
获取一个值,该值表示此元素是否具有键盘焦点。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
;否则为 false
。true
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) core (请参阅 ContentElement.IsKeyboardFocused 和 UIElement.IsKeyboardFocused) 将此属性建立为依赖属性。Existing implementations in the Windows Presentation Foundation (WPF) core (see ContentElement.IsKeyboardFocused and UIElement.IsKeyboardFocused) establish this property as a dependency property.