Reputation: 41648
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?
Upvotes: 9
Views: 4737
Reputation: 15247
Try this:
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
Upvotes: 18