共用方式為


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

適用於