FrameworkElement.FocusVisualMargin Property

Definition

Gets or sets the outer margin of the focus visual for a FrameworkElement.

C#
public Thickness FocusVisualMargin { get; set; }

Property Value

Provides margin values for the focus visual. The default is a Thickness with all properties (dimensions) equal to 0. A different runtime default is often provided by individual control templates.

Examples

XAML
<Button Content="Button"
        FocusVisualMargin="-3"/>

Remarks

A negative margin will push the border away from the center of the control, and a positive margin will move the border closer to the center of the control.

Non-integral values for margin values are technically permitted, but should typically be avoided.

HighVisibility and Reveal focus visuals are rendered with an outer (primary) and inner (secondary) border.

For more info, see High Visibility Focus Visuals and Reveal focus.

Applies to

Produkt Verzie
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also