我最近将Windows Phone 8.0应用程序转换为Windows Phone 8.1 Silverlight(非通用)。之后我将Notification Service更改为WNS,因为我想使用它的好处。通过更改,我必须在新的Package.appxmanifest文件中指定我的tile徽标。
<m3:VisualElements DisplayName="Time Stamp Pro"
Square150x150Logo="Assets\Tiles\Logo.png"
Square44x44Logo="Assets\Tiles\SmallLogo.png"
Description="Work time tracker"
ForegroundText="light"
BackgroundColor="transparent">
<m3:DefaultTile Square71x71Logo="Assets\Tiles\Square71x71Logo.png"
Wide310x150Logo="Assets\Tiles\WideLogo.png">
</m3:DefaultTile>
<m3:SplashScreen Image="Assets\Splashscreen\SplashScreenImage.jpg" />
</m3:VisualElements>
我的文件结构如下所示。
但是,当我现在启动应用程序时,这些徽标/磁贴没有显示出来。换句话说,他们无法加载。
所有徽标均为白色,背景为透明。它们看起来像这样(截图取自paint.net,因此背景中的方块仅来自此绘图工具)
我无法弄清楚我在这里做错了什么。到目前为止,所有文档对我都没有帮助。
答案 0 :(得分:1)
在与Microsoft的相应人员取得联系后,我知道它为什么不起作用。 WP8.1 Silverlight不支持缩放资源(scale-xxx作为文件名的一部分的图像)。它们需要一种仅在Windows Universal应用程序中可用的新资源概念。因此,我必须坚持使用我在WP8.0中使用的旧图像,并在没有scale-xxx的情况下引用它们。
答案 1 :(得分:0)
尝试在DefaulTile中添加Square310x310Logo,就像这样
<m3:DefaultTile
Square71x71Logo="Assets\SquareTile71x71.png"
Wide310x150Logo="Assets\Tiles\SquareTile310x150.png"
Square310x310Logo="Assets\Tiles\SquareTile310x310.png">
</m3:DefaultTile>