Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/325.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 在WP8.1 Silverlight应用程序中未正确显示磁贴_C#_Silverlight_Windows Phone 8.1_Live Tile_Appxmanifest - Fatal编程技术网

C# 在WP8.1 Silverlight应用程序中未正确显示磁贴

C# 在WP8.1 Silverlight应用程序中未正确显示磁贴,c#,silverlight,windows-phone-8.1,live-tile,appxmanifest,C#,Silverlight,Windows Phone 8.1,Live Tile,Appxmanifest,我最近将我的Windows Phone 8.0应用程序转换为Windows Phone 8.1 Silverlight(非通用)。之后,我将通知服务更改为WNS,因为我想利用它的优点。更改此项后,我必须在新的Package.appxmanifest文件中指定我的磁贴徽标 <m3:VisualElements DisplayName="Time Stamp Pro" Square150x150Logo="Assets\Tiles\Logo.png" Square44x44L

我最近将我的Windows Phone 8.0应用程序转换为Windows Phone 8.1 Silverlight(非通用)。之后,我将通知服务更改为WNS,因为我想利用它的优点。更改此项后,我必须在新的Package.appxmanifest文件中指定我的磁贴徽标

<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,因此背景中的方块就是来自这个绘图工具)


我搞不清楚我做错了什么。到目前为止,所有文档对我都没有帮助。

试着像这样在DefaulTile中添加Square310x310徽标

<m3:DefaultTile  
Square71x71Logo="Assets\SquareTile71x71.png" 
Wide310x150Logo="Assets\Tiles\SquareTile310x150.png"
Square310x310Logo="Assets\Tiles\SquareTile310x310.png">
</m3:DefaultTile>


在与微软的相关人员联系后,我知道了为什么它不起作用。WP8.1 Silverlight不支持缩放资源(文件名中包含缩放xxx的图像)。它们需要一种新的资源概念,这种概念仅在Windows通用应用程序中可用。因此,我必须坚持我在WP8.0中使用的旧图像,并在没有缩放xxx的情况下引用它们。

您确定图像名称正确且操作设置为资源吗?请仔细检查。将操作设置为资源也不起作用。我确信这些名字是正确的。根据文档和Build2014视频,该框架将检查.scale xxx作为名称的一部分,以显示正确的图像,具体取决于设备屏幕(这样它看起来总是完美的)。但是如果我对这个惯例有错误,请纠正我。这也没用。无论如何,WP忽略了Square310x310徽标。请注意,该应用程序是适用于Silverlight的WP 8.1!(不是通用的)你能分享一下代码吗?