锁屏徽标徽标使用小徽标代替? [英] Lock screen Badge Logo using Small Logo instead ?

查看:103
本文介绍了锁屏徽标徽标使用小徽标代替?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经设置了一个后台任务,要求获得锁定屏幕权限,并且所有功能都正常。


然而指南说明图标必须是单色的;这不是一个大问题,我已经快乐地转换了。


在PC设置中,单色图标显示正常。


但是当我触发徽章更新并翻转到锁定屏幕,它似乎是使用我的清单中的小图标而不是单色图标。


我的清单如下所示:

< VisualElements DisplayName =" app"标志= QUOT; Assets\Logo.png" SmallLogo = QUOT; Assets\SmallLogo.png"描述= QUOT;应用" ForegroundText = QUOT;暗" BACKGROUNDCOLOR = QUOT;白" ToastCapable = QUOT;真"> 
< LockScreen Notification =" badgeAndTileText" BadgeLogo = QUOT; Assets\BadgeLogo.png" />
< DefaultTile ShowName =" allLogos" WideLogo = QUOT; Assets\WideLogo.png" />
< SplashScreen Image =" Assets\SplashScreen.png" />
< / VisualElements>

这是我基于代码控制还是没有完成的事情,或者这是VisualStudio构建器应该做的事情,是出错了?


我不想让我的小图标单色,所以如果有另一种解决方案,我很乐意听到它!


谢谢。

解决方案

MrChris2000,


您是否尝试将代码与以下示例进行比较:&NBSP;
http://code.msdn.microsoft.com/windowsapps/Lock- screen-apps-sample-9843dc3a


祝福 - Eric


I've set up a background task which asks for lock screen permissions and all the functionality is working fine.

However the guidelines say the icon must be monochrome; not a big issue, I've converted mine happily.

In the PC Settings the monochrome icon is showing fine as expected.

However when I trigger a badge update and flip to the lock screen it appears to be using the Small Icon from my manifest rather than the monochrome icon.

My manifest looks as below:

<VisualElements DisplayName="app" Logo="Assets\Logo.png" SmallLogo="Assets\SmallLogo.png" Description="app" ForegroundText="dark" BackgroundColor="white" ToastCapable="true">
        <LockScreen Notification="badgeAndTileText" BadgeLogo="Assets\BadgeLogo.png" />
        <DefaultTile ShowName="allLogos" WideLogo="Assets\WideLogo.png" />
        <SplashScreen Image="Assets\SplashScreen.png" />
      </VisualElements>

Is this something I have code based control over and haven't done, or is this something the VisualStudio builder should be doing and is getting wrong?

I don't want to make my Small Icon monochrome, so if there is another solution I'd love to hear it!

Thanks.

解决方案

MrChris2000,

have you tried comparing your code to the following sample:  http://code.msdn.microsoft.com/windowsapps/Lock-screen-apps-sample-9843dc3a

Best Wishes - Eric


这篇关于锁屏徽标徽标使用小徽标代替?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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