由于之前的Windows应用开发套件版本中缺少某些功能,代码中包含相当多的解决方法。在#28310(评论)之后,应该评估这些解决方法是否可以移除。
代码简化。
6yjfywim1#
That particular workaround mentioned still needs to be there, as AFAIK the Windows App SDK can't automatically handle title bar text foreground (most likely due to the need to support multiple UI frameworks like WPF)
pvcm50d12#
您是指这个吗?https://learn.microsoft.com/windows/apps/develop/title-bar?tabs=wasdk#dim-the-title-bar-when-the-window-is-inactive
r7xajy2e3#
是的。
wgxvkvu94#
也许可以删除“沉浸式暗黑模式”的解决方法?我自己的应用在使用1.4版本时没有注意到它。
4条答案
按热度按时间6yjfywim1#
That particular workaround mentioned still needs to be there, as AFAIK the Windows App SDK can't automatically handle title bar text foreground (most likely due to the need to support multiple UI frameworks like WPF)
pvcm50d12#
您是指这个吗?https://learn.microsoft.com/windows/apps/develop/title-bar?tabs=wasdk#dim-the-title-bar-when-the-window-is-inactive
r7xajy2e3#
是的。
wgxvkvu94#
也许可以删除“沉浸式暗黑模式”的解决方法?我自己的应用在使用1.4版本时没有注意到它。