語言

IInputElement.Focusable 屬性

定義

會獲得或設定一個值,指示焦點是否可以設定為此元素。

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

屬性值

true如果該元素可以設定對焦;否則,。 false

備註

此介面並非為公開實作而設計。 欲了解更多資訊,請參閱介面備註 IInputElement 。

Windows Presentation Foundation(WPF)核心中的現有實作(參見 ContentElement.Focusable 和 UIElement.Focusable)將此屬性設定為相依性質。

適用於

另請參閱