更改 ContentDialog 的叠加背景颜色 [英] Changing the Overlay background color for 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屋!