FrameworkElement.FocusVisualMargin FrameworkElement.FocusVisualMargin FrameworkElement.FocusVisualMargin FrameworkElement.FocusVisualMargin Property

Definition

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

public : Thickness FocusVisualMargin { get; set; }
Thickness FocusVisualMargin(); void FocusVisualMargin(Thickness focusvisualmargin);
public Thickness FocusVisualMargin { get; set; }
Public ReadWrite Property FocusVisualMargin As Thickness
Property Value

Provides margin values for the focus visual. The default value is a default Thickness with all properties (dimensions) equal to 0.

Additional features and requirements
Device family
Windows 10 Anniversary Edition (introduced v10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v3)

Remarks

FocusVisualMargin values greater than 0 apply space outside the ActualWidth and ActualHeight of the object.

Negative values for margin dimensions are permitted, but should be used with caution. Negative margins can cause the content of the object to be clipped.

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

HighVisibility focus visuals are rendered with an outer (primary) and inner (secondary) border. For more info: