FrameworkElement.FocusVisualPrimaryBrush Property

Definition

Gets or sets the brush used to draw the outer border of a HighVisibility focus visual for a FrameworkElement.

public:
 property Brush ^ FocusVisualPrimaryBrush { Brush ^ get(); void set(Brush ^ value); };
Brush FocusVisualPrimaryBrush();

void FocusVisualPrimaryBrush(Brush value);
public Brush FocusVisualPrimaryBrush { get; set; }
var brush = frameworkElement.focusVisualPrimaryBrush;
frameworkElement.focusVisualPrimaryBrush = brush;
Public Property FocusVisualPrimaryBrush As Brush

Property Value

Brush

The brush used to draw the outer border of a HighVisibility focus visual.

The default colors are dependent on the RequestedTheme. Typically, the outer (primary) color is solid black, or equivalent, and the inner (secondary) color is solid white, or equivalent.

Windows 10 requirements

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

Remarks

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

Applies to