如何更改 ContentDialog uwp 的背景叠加

问题描述:

我正在使用 VS2015 开发 UWP Win10 应用程序.我正在使用 ContenDialog 来显示模态窗口/弹出窗口.我需要更改 ContentDialog 的背景叠加颜色.这该怎么做.即使在内部样式中也没有选项/属性.

I am developing UWP Win10 App using VS2015. I am using ContenDialog to show a Modal Window / Popup. I need to change the Background Overlay color of ContentDialog. How to do this. There is no option/property even in the inner Style too.

我需要将 Overlay White Dim 颜色更改为其他颜色,例如 Blackish overlay/dim color 等...

I need to change the Overlay White Dim color to some other color like Blackish overlay/dim color etc...

看图.

我认为您需要自定义使用控件来更好地控制后台.默认的 ContenDialog 提供非常简单的设置,并且对按钮/内容的数量有限制.

I think you need custom use control to have more control over the background. The default ContenDialog provide very bare bone setup and has limitations to the number of buttons / contents.