12 April 2011

WPF / XAML - Using system colors

Binding a system color to a property in XAML is done like this:
Foreground="{x:Static SystemColors.HighlightBrush}"

A reference about these system colors can be found here.

No comments:

Post a Comment