c# - Windows 10 桌面应用程序中的彩色磁贴

标签 c# windows-10 desktop-application tile startmenu

我注意到,在 Windows 10 的第一个重大更新中,一些桌面应用程序的磁贴颜色与我为强调色设置的不同,例如 Firefox,它的磁贴颜色为深灰色:

Firefox

但是,并不是所有的应用程序都有这个,并且使用默认的强调色,比如 Blender。

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/

相关文章:

c# - 在组合框中显示有限的项目

c# - CryptoAPI AcquireContext 无法检索 key 容器

c# - 当没有更多可用线程时 .ForEach 循环是否阻塞

c# - 在 ContentDialog 中滚动 Richtextblock

java - 桌面应用程序的推荐技术选择

c# - 使用 "for"属性打开文件对话框

java - task scheduler run .exe问题(.exe包含处理java代码)

xaml - 在 App.xaml 上添加基于样式在 App() { InitializeComponent(); }

java - 将 J2SE 应用程序与 Web 应用程序集成的最简单方法

c# - 用于 C# 的 Aweber API