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 开发者_Python百科the window is a dialog box and it should paint the background accordingly?
Try this:
Background="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"
精彩评论