我想要我的应用程序中的“Pin to start”功能。我不想像以下代码那样创建辅助磁贴:
StandardTileData NewTileData = new StandardTileData
{
BackgroundImage = new Uri("Red.jpg", UriKind.Relative),
Title = "Secondary Tile",
Count = 12,
BackTitle = "Back of Tile",
BackContent = "Welcome to the back of the Tile",
BackBackgroundImage = new Uri("Blue.jpg", UriKind.Relative)
};
// Create the tile and pin it to Start. This will cause a navigation to Start and a deactivation of our application.
ShellTile.Create(new Uri("/SecondaryTile.xaml?DefaultTitle=FromTile", UriKind.Relative), NewTileData);
另外,我不希望应用程序在图标固定到开始屏幕时退出。