FrameworkElement.AllowFocusOnInteraction Property

Definition

Gets or sets a value that indicates whether the element automatically gets focus when the user interacts with it.

C#
public bool AllowFocusOnInteraction { get; set; }
XAML
<frameworkElementAllowFocusOnInteraction="bool"/>

Property Value

Boolean

true if the element gets focus when a user interacts with it; otherwise, false.

Applies to

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6