简体   繁体   English

Windows Phone 8.1 Silverlight应用程序上的图块标题

[英]Tile title on Windows Phone 8.1 Silverlight app

I migrated my app from WP8.0 to WP8.1 Silverlight . 我将我的应用程序从WP8.0迁移到WP8.1 Silverlight Now the tiles won't show the title/app name anymore. 现在,磁贴将不再显示标题/应用名称。

The Package.appxmanifest (part for tiles) currently looks as follows Package.appxmanifest(图块的一部分)当前如下所示

  <m3:VisualElements DisplayName="Time Stamp" Square150x150Logo="Assets\Startscreen-Medium-Tile.png" Square44x44Logo="Assets\Applicaton-Icon.png" Description="Time Stamp work time tracker" ForegroundText="light" BackgroundColor="transparent">
    <m3:DefaultTile ShortName="Time Stamp" Square71x71Logo="Assets\Startscreen-Small-Tile.png" Wide310x150Logo="Assets\Startscreen-Wide-Tile.png">
      <m3:ShowNameOnTiles>
        <m3:ShowOn Tile="square150x150Logo"></m3:ShowOn>
        <m3:ShowOn Tile="wide310x150Logo"></m3:ShowOn>
      </m3:ShowNameOnTiles>
    </m3:DefaultTile>
    <m3:SplashScreen Image="Assets\SplashScreen\SplashScreenImage.scale-240.jpg" />
  </m3:VisualElements>

I've been searching the docs for some time now and couldn't figure out what's missing. 我一直在搜索文档一段时间,无法弄清缺少的内容。 What caught my eye is the following Note which belongs to the description for the ShortName attribute of DefaultTile ( https://msdn.microsoft.com/en-us/library/windows/apps/dn391672.aspx ) 引起我注意的是以下注释,该注释属于DefaultTileShortName属性的描述( https://msdn.microsoft.com/zh-cn/library/windows/apps/dn391672.aspx

Note As of Windows 8.1, this property is ignored and the display name 
declared in the manifest is used in its place.

Although it mentions Windows instead of Windows Phone I was wondering what manifest it refers too. 尽管它提到的是Windows而不是Windows Phone,但我想知道它所指的是什么。 Maybe the docs are not 100% correct here. 也许这里的文档不是100%正确。

As it happens sometimes, right after asking the question I figured out what is causing the issue. 有时会发生这种情况,在问了这个问题之后,我才弄清楚是什么原因引起的。 It seems like the project just had to be rebuild completely in order for the the tile titles to show up properly. 似乎只需要完全重建项目即可正确显示磁贴标题。 No wonder I couldn't find any info on this in the docs as it should be clear to do that whenever the manifest changes. 难怪我在文档中找不到关于此的任何信息,因为只要清单更改,就应该这样做。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM