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

适用于