語言

InputFocusController.HasFocus 屬性

定義

了解相關的 ContentIsland 是否有焦點。

public:
 property bool HasFocus { bool get(); };
bool HasFocus();
public bool HasFocus { get; }
var boolean = inputFocusController.hasFocus;
Public ReadOnly Property HasFocus As Boolean

屬性值

Boolean

bool

沒錯,如果 ContentIsland 有焦點的話。 如果不符合,那就是錯。

適用於

另請參閱