更改 ContentDialog 的叠加背景颜色 [英] Changing the Overlay background color for ContentDialog

查看:31
本文介绍了更改 ContentDialog 的叠加背景颜色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的 UWP 应用,我想在内容对话框打开时覆盖屏幕背景颜色的默认主题.我尝试执行此答案中提到的操作,但对我不起作用:https://stackoverflow.com/a/32159659/2858235

For my UWP app, I want to override the default theme of the background color of the screen around the content dialog when it opens. I tried doing what's mentioned in this answer but it didn't work for me: https://stackoverflow.com/a/32159659/2858235

我的操作系统版本号是 10586.我在某处读到此解决方案不再适用于等于或高于 10586 的版本.有什么解决方案吗?

My OS build # is 10586. I read somewhere that this solution is no more working for builds equal and above 10586. Is there any solution?

推荐答案

对我来说,我的 SDK 版本是 14393(周年纪念),要覆盖的 SolidColorBrush 资源是 SystemControlPageBackgroundMediumAltMediumBrush(这是一口!).

For me, my SDK version is 14393 (Anniversary) and the SolidColorBrush resource to override is SystemControlPageBackgroundMediumAltMediumBrush (that's a mouthful!).

这篇关于更改 ContentDialog 的叠加背景颜色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆