Share via

FrameworkElement.FocusVisualPrimaryThickness Property


Gets or sets the thickness of the outer border of a HighVisibility or Reveal focus visual for a FrameworkElement.

 property Thickness FocusVisualPrimaryThickness { Thickness get(); void set(Thickness value); };
Thickness FocusVisualPrimaryThickness();

void FocusVisualPrimaryThickness(Thickness value);
public Thickness FocusVisualPrimaryThickness { get; set; }
var thickness = frameworkElement.focusVisualPrimaryThickness;
frameworkElement.focusVisualPrimaryThickness = thickness;
Public Property FocusVisualPrimaryThickness As Thickness

Property Value

The thickness of the outer border of a HighVisibility focus visual. The default is 2.

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)


<Button Content="Button"


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

See also