FrameworkElement.AllowFocusOnInteraction 属性

定义

获取或设置一个值,该值指示当用户与元素交互时是否自动获得焦点。

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

void AllowFocusOnInteraction(bool value);
public bool AllowFocusOnInteraction { get; set; }
var boolean = frameworkElement.allowFocusOnInteraction;
frameworkElement.allowFocusOnInteraction = boolean;
Public Property AllowFocusOnInteraction As Boolean
<frameworkElementAllowFocusOnInteraction="bool"/>

属性值

Boolean

bool

如果用户与元素交互时获得焦点,则为 true;否则为 false

Windows 要求

设备系列
Windows 10 Anniversary Edition (在 10.0.14393.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v3.0 中引入)

适用于