IInputElement.Focusable Property

Definition

获取或设置一个值,该值指示是否可将焦点设置到此元素。Gets or sets a value that indicates whether focus can be set to this element.

public:
 property bool Focusable { bool get(); void set(bool value); };
public bool Focusable { get; set; }
member this.Focusable : bool with get, set
Public Property Focusable As Boolean

Property Value

Boolean

如果可将焦点设置到此元素,则为 true;否则为 falsetrue if the element can have focus set to it; otherwise, false.

Remarks

此接口不用于公共实现。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.FocusableUIElement.Focusable)将此属性建立为依赖属性。Existing implementations in the Windows Presentation Foundation (WPF)Windows Presentation Foundation (WPF) core (see ContentElement.Focusable and UIElement.Focusable) establish this property as a dependency property.

Applies to

See also