我注意到,在 Windows 10 的第一个重大更新中,一些桌面应用程序的磁贴颜色与我为强调色设置的不同,例如 Firefox,它的磁贴颜色为深灰色:
但是,并不是所有的应用程序都有这个,并且使用默认的强调色,比如 Blender。
我想知道此更改是否类似于 Windows 8.1 对更新的开始屏幕所做的更改,其中 you could set the color of a desktop app tile via XML .
我是使用 C# 的 Windows 平台的新手,我认为在我的程序中在开始屏幕上实现更加自定义的磁贴会很好,但我不知道如何实现。
最佳答案
在 UWP 应用中,您可以在应用 list 中设置磁贴背景颜色,例如:
<uap:VisualElements
DisplayName="MyApp"
Square150x150Logo="Assets\Square150x150Logo.png"
Square44x44Logo="Assets\Square44x44Logo.png"
Description="MyApp description"
BackgroundColor="#ffff00">
...
<uap:SplashScreen
Image="Assets\SplashScreen.png"
BackgroundColor="#ff0000" />
</uap:VisualElements>
这会将磁贴背景设置为黄色,并将初始屏幕背景独立设置为红色。
对于桌面应用程序, this link is likely more useful .
关于c# - Windows 10 桌面应用程序中的彩色磁贴,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34459473/