开发者

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

开发者 https://www.devze.com 2022-12-26 12:49 出处:网络
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 tha

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

精彩评论

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