Sunday, September 12, 2010

Using system colors in WPF

What is the best way to use the system colors in a WPF application? Say you want to draw a rectangle with the background color set to one of the system colors, say the color of the active title bar. The main problem is that this color is not the same, it varies with the Windows theme used and might be different from one computer to another.

XAML:

No comments:

Post a Comment