Changing the Overlay background color for ContentDialog

爱⌒轻易说出口 提交于 2020-01-07 02:56:47

问题


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

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?


回答1:


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



来源:https://stackoverflow.com/questions/40396246/changing-the-overlay-background-color-for-contentdialog

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!