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

适用于