Windows 8 更改固定在metro桌面上的快捷方式互动程序的互动程序图像

Windows 8 更改固定在metro桌面上的快捷方式互动程序的互动程序图像,windows-8,Windows 8,我们创建了一个平铺快捷方式,类似于将IE快捷方式固定在屏幕上。我们已经通过代码实现了这一点。我们想要一个图像应该出现在这个瓷砖上。我们如何将图像添加到这样的快捷平铺中。我们首先在Windows7桌面模式下运行exe,然后使用shell脚本使pin-to-screen事件单击。该互动程序类似于桌面上固定的任何internet地址请参阅 实现这一点所需的基本代码如下 Uri logo = new Uri("ms-appx:///Assets/squareTile-sdk.png"); Uri sm

我们创建了一个平铺快捷方式,类似于将IE快捷方式固定在屏幕上。我们已经通过代码实现了这一点。我们想要一个图像应该出现在这个瓷砖上。我们如何将图像添加到这样的快捷平铺中。我们首先在Windows7桌面模式下运行exe,然后使用shell脚本使pin-to-screen事件单击。该互动程序类似于桌面上固定的任何internet地址

请参阅

实现这一点所需的基本代码如下

Uri logo = new Uri("ms-appx:///Assets/squareTile-sdk.png"); 
Uri smallLogo = new Uri("ms-appx:///Assets/smallTile-sdk.png"); 
string tileActivationArguments = MainPage.logoSecondaryTileId + " WasPinnedAt=" + DateTime.Now.ToLocalTime().ToString(); 
SecondaryTile secondaryTile = new SecondaryTile(MainPage.logoSecondaryTileId, 
   "Title text shown on the tile", 
   "Name of the tile the user sees when searching for the tile", 
   tileActivationArguments, 
   TileOptions.ShowNameOnLogo, 
   logo); 
secondaryTile.ForegroundText = ForegroundText.Dark; 
secondaryTile.SmallLogo = smallLogo; 
bool isPinned = await await secondaryTile.RequestCreateAsync();