SystemColors.HighlightColorKey Property


Gets the ResourceKey for the background Color of selected items.

 static property System::Windows::ResourceKey ^ HighlightColorKey { System::Windows::ResourceKey ^ get(); };
public static System.Windows.ResourceKey HighlightColorKey { get; }
static member HighlightColorKey : System.Windows.ResourceKey
Public Shared ReadOnly Property HighlightColorKey As ResourceKey

Property Value


The resource key for the background Color of selected items.


Use the HighlightColorKey to create a dynamic reference to the highlight system color. This dynamic reference will automatically update if the color is changed. To create a static reference that does not update automatically, use HighlightColor.

XAML Attribute Usage

<object property="{DynamicResource {x:Static SystemColors.HighlightColorKey}}"/>  

XAML Values

The x:Static Markup Extension.

Applies to

See also