且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Windows Phone 8.1中以编程方式创建磁贴?

更新时间:2023-01-26 09:44:15

在WP8.1运行时中,您可以使用

In WP8.1 Runtime you can use SecondaryTile, for example:

SecondaryTile tileData = new SecondaryTile()
{
    TileId = "MyTileID",
    DisplayName = "MyTilesTitle",
    Arguments = "Some arguments"
};
tileData.VisualElements.Square150x150Logo = new Uri("uri to image");
tileData.VisualElements.ShowNameOnSquare150x150Logo = true;
await tileData.RequestCreateAsync();

一些指南,您也可以在MSDN上找到此处.

Some guide you can also find here at MSDN.