Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is a good default background color for a WPF dialog box?

Tags:

wpf

None of the brushes in SystemColors seems to fit the bill, and IIRC, the OS theme beginning with Windows XP uses a gradient. Is there a standard OS dialog box background brush or a way to tell WPF that the window is a dialog box and it should paint the background accordingly?

like image 842
Edward Brey Avatar asked Apr 09 '10 14:04

Edward Brey


1 Answers

Try this:

Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
like image 149
Charlie Avatar answered Sep 19 '22 06:09

Charlie