Windows phone 7 在另一页上固定辅助磁贴

Windows phone 7 在另一页上固定辅助磁贴,windows-phone-7,Windows Phone 7,我想创建辅助平铺。但它应该锁定在其他位置,而不是在起始页上。我可以控制要将链接固定在其他页面上的位置。有可能吗。如果是的话,你能告诉我怎么做吗 期待中的感谢 是的,这是可能的。通过create方法创建ShellTile时,需要使用navigationUri参数。标准模式为: Uri mySecondaryPage = new Uri("/MySecondaryPage.xaml", UriKind.Relative) ShellTile tile = ShellTile.ActiveTiles.

我想创建辅助平铺。但它应该锁定在其他位置,而不是在起始页上。我可以控制要将链接固定在其他页面上的位置。有可能吗。如果是的话,你能告诉我怎么做吗

期待中的感谢
是的,这是可能的。通过create方法创建ShellTile时,需要使用navigationUri参数。标准模式为:

Uri mySecondaryPage = new Uri("/MySecondaryPage.xaml", UriKind.Relative)
ShellTile tile = ShellTile.ActiveTiles.Where(x => x.NavigationUri == mySecondaryPage).FirstOrDefault();
if (tile != null) {
  tile.Delete();
}

StandardTileData data = new StandardTileData() {
  Title = "Appears on the front",
  // Whatever number badge you want to appear 
  Count = 1, 
  // Front image
  BackgroundImage = new Uri("/Image.png", UriKind.Relative), 
  // Image for flip side
  BackBackgroundImage = new Uri("/AnotherImage.png", UriKind.Relative), 
  BackTitle = "Appears on the back",
  BackContent = "As does this"
};

ShellTile.Create(mySecondaryPage, data);
当用户点击此图标时,它将直接导航到MySecondaryPage.xaml


MSDN的文章中提供了一些很好的文档。

您希望将辅助磁贴固定到哪个页面?您需要说明更多: