Share via


DesktopWindowXamlSource.HasFocus 屬性

定義

取得值,指出 DesktopWindowXamlSource 目前在傳統型應用程式中是否有焦點。

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

屬性值

Boolean

bool

True 是表示 如果 DesktopWindowXamlSource 目前在傳統型應用程式中有焦點;否則為 false。

適用於