任务栏上的 UWP 应用图标 [英] UWP app icon on taskbar

查看:50
本文介绍了任务栏上的 UWP 应用图标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经为 UWP 应用整理了所有图标资产,详情此处 除了任务栏上的图标.这是因为我发现链接中的描述对于我应该如何命名应显示在任务栏上的图标(应用程序运行时)有些冗长且令人困惑.

I have all icon assets sorted out for a UWP app as detailed here except for the icon on the Taskbar. This is because I find the description at the link referred to somewhat long-winded and confusing as to how I should name an icon that should show up on the Taskbar (when the app is running).

我准备了尺寸为 16x16、24x24、32x32、48x48、256x256 的图标尺寸.我按照推荐将它们命名为 MyAppNameAppList.targetsize-XX.png,其中 XX 是 16、24、32、48 或 256.正如我在上面指出的,其他图标我没有问题(瓷砖等),但任务栏上的那个没有出现.

I have icon sizes prepared in dimensions of 16x16, 24x24, 32x32, 48x48, 256x256. I named them as recommended as MyAppNameAppList.targetsize-XX.png where XX is 16, 24, 32, 48 or 256. As I've indicated above, I've no trouble with other icons (on tiles, etc.) but the one on the Taskbar which doesn't show up.

我做错了什么?帮助!

推荐答案

好的,我明白了.我错误地遗漏了 24x24 图标,事实证明,它正是任务栏所需的图标!

Okay, I got it figured out. I left out the 24x24 icon by mistake, and as it turned out, is the very one required for the Taskbar!

虽然遗漏 24x24 图标对我来说是个问题,但仍然存在潜在的混乱,MSDN 链接也没有多大帮助.例如,没有指示何时将使用 5 个图标尺寸中的哪一个.我的猜测是这些尺寸与一些自适应屏幕尺寸有关,但没有详细说明.我发现以下链接确实更有启发性.

While leaving out the 24x24 icon turned out to be a problem for me, there still remains a potential confusion and the MSDN link doesn't help much. For instance, there is no indication of which of the 5 icon dimensions would be used when. My guess is that these dimensions relate to some adaptive screen sizing but no detail on this. I found the following link more instructive indeed.

修正:顺便说一句,我发现了这个链接 非常有用(带有演示项目等)并且比 MSDN 做出了更好的解释问题中提供的链接.

Amended: As an aside, I found this link very useful (with demo project, etc) and makes a much better explanation than the MSDN link provided in the question.

这篇关于任务栏上的 UWP 应用图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆