Windows phone 8.1 如何在Windows Phone 8.1中以编程方式创建互动程序?

Windows phone 8.1 如何在Windows Phone 8.1中以编程方式创建互动程序?,windows-phone-8.1,live-tile,Windows Phone 8.1,Live Tile,在Windows Phone 8中,我能够创建具有以下内容的Shell互动程序: StandardTileData newTileData = new StandardTileData { BackgroundImage = new Uri("/Images/my_tile_medium.png", UriKind.Relative), Title = "My Tile Title", BackTitle = "My Tile Back", BackBackgro

在Windows Phone 8中,我能够创建具有以下内容的Shell互动程序:

StandardTileData newTileData = new StandardTileData
{
    BackgroundImage = new Uri("/Images/my_tile_medium.png", UriKind.Relative),
    Title = "My Tile Title",
    BackTitle = "My Tile Back",
    BackBackgroundImage = new Uri("/Images/my_tile_medium_back.png", UriKind.Relative),
};

ShellTile.Create(MyAppPages.MainPage("Name=MyAppTile"), newTileData);

这在Windows Phone 8.1中不再有效。如何在您可以使用的WP8.1运行时中使用Windows Phone 8.1以编程方式创建互动程序,例如:

SecondaryTile数据=新的SecondaryTile()
{
TileId=“MyTileID”,
DisplayName=“MyTilesTitle”,
Arguments=“一些参数”
};
tileData.VisualElements.Square150x150Logo=新Uri(“Uri到图像”);
tileData.VisualElements.ShowNamesQuare150x150Logo=true;
等待tileData.RequestCreateAync();
你也可以找到一些指南