开发者

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

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}}"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜