FrameworkElement.FocusVisualSecondaryBrush Property

Definition

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

C#
public Brush FocusVisualSecondaryBrush { get; set; }

Property Value

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

Examples

XAML
<!-- Specify a color directly -->
<Button Content="Button"
        FocusVisualPrimaryBrush="DarkRed"
        FocusVisualSecondaryBrush="Pink"/>

<!-- Use theme resources -->
<Button Content="Button"
        FocusVisualPrimaryBrush="{ThemeResource SystemBaseHighColor}"
        FocusVisualSecondaryBrush="{ThemeResource SystemAccentColor}"/>

Remarks

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.

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

Product Versions
Windows App SDK 0.8, 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6

See also