在WP8应用程序中添加Wide Tile

时间:2012-12-18 00:02:13

标签: c# windows windows-phone-7 windows-phone-7.1 windows-phone-8

如何在我的WP8应用程序中添加宽磁贴(从wp 7.1升级)?

我试图遵循以下指南:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj720574(v=vs.105).aspx

但我无法让它发挥作用。此外,WMAppManifest.xml没有Wide Tile选项。我可以添加的唯一图像是小,中,大

1 个答案:

答案 0 :(得分:2)

您引用的文章是在Windows Phone 7项目中启用Windows Phone 8设备上的宽图块。您的7.1应用程序仍然可以安装在WP8上。如果您的应用已升级到Windows Phone 8项目,请使用Flip Tile Template设置WideBackContent和WideBackground图像。

FlipTileData TileData = new FlipTileData()
{
   Title = "[title]",
   BackTitle = "[back of Tile title]",
   BackContent = "[back of medium Tile size content]",
   WideBackContent = "[back of wide Tile size content]",
   Count = [count],
   SmallBackgroundImage = [small Tile size URI],
   BackgroundImage = [front of medium Tile size URI],
   BackBackgroundImage = [back of medium Tile size URI],
   WideBackgroundImage = [front of wide Tile size URI],
   WideBackBackgroundImage = [back of wide Tile size URI],
};

否则,如果您确实拥有7.1项目,我建议使用Mangopollo project来简化该过程。 Thomas Fennel有//Build/ session可能会有帮助。

相关问题