Skip to content

Latest commit

 

History

History
41 lines (24 loc) · 1.76 KB

frameworkelement_focusvisualmargin.md

File metadata and controls

41 lines (24 loc) · 1.76 KB
-api-id -api-type
P:Windows.UI.Xaml.FrameworkElement.FocusVisualMargin
winrt property

Windows.UI.Xaml.FrameworkElement.FocusVisualMargin

-description

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

-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.

-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.

-examples

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

-see-also

High Visibility Focus Visuals, Reveal focus, FocusVisualPrimaryBrush, FocusVisualSecondaryBrush, FocusVisualPrimaryThickness, FocusVisualSecondaryThickness