共用方式為


FrameworkElement.AllowFocusWhenDisabled 屬性

定義

取得或設定停用的控制項是否可以接收焦點。

public:
 property bool AllowFocusWhenDisabled { bool get(); void set(bool value); };
bool AllowFocusWhenDisabled();

void AllowFocusWhenDisabled(bool value);
public bool AllowFocusWhenDisabled { get; set; }
var boolean = frameworkElement.allowFocusWhenDisabled;
frameworkElement.allowFocusWhenDisabled = boolean;
Public Property AllowFocusWhenDisabled As Boolean

屬性值

Boolean

bool

如果停用的控制項可以接收焦點,則為true;否則為false

Windows 需求

裝置系列
Windows 10 Anniversary Edition (已於 10.0.14393.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v3.0 引進)

適用於