CoreComponentInputSource.HasFocus プロパティ

定義

現在ホストされている XAML コントロール要素にフォーカスがあるかどうかを取得します。 その場合、キーボード入力はそのコントロールに配信されます。

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

プロパティ値

Boolean

bool

要素にフォーカスがある場合は trueそうでない場合は false。

適用対象