【问题标题】:Color tiles in Windows 10 desktop appsWindows 10 桌面应用程序中的颜色图块
【发布时间】:2016-03-31 07:02:00
【问题描述】:

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

但是,并非所有应用都具有此功能,并使用默认的强调色,例如 Blender。

我想知道这个变化是否类似于 Windows 8.1 对更新的开始屏幕所做的,其中you could set the color of a desktop app tile via XML

我是 C# 中 Windows 平台的新手,我认为在我的程序中在开始屏幕上实现一个更加自定义的磁贴会很好,但我不知道如何。

【问题讨论】:

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


    【解决方案1】:

    在 UWP 应用中,您可以在应用清单中设置磁贴背景颜色,例如:

    <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

    【讨论】:

    • 就像我说的,这不是通用 Windows 应用程序,所以我认为它没有这些功能。
    • 啊,我的错。我用一个似乎相关的链接更新了我的答案(我现在没有时间测试这个,我不想复制/粘贴未经测试的代码)。
    猜你喜欢
    • 2021-08-11
    • 2015-04-20
    • 2016-09-14
    • 2016-06-19
    • 1970-01-01
    • 2018-10-27
    • 2014-11-29
    • 1970-01-01
    相关资源
    最近更新 更多