我正在使用 Silverlight 工具包(八月)中提供的 Hubtile 控件,但我无法弄清楚如何将磁贴固定到主页。完全一无所知,我已经彻底搜遍了所有地方,但没有运气。帮助表示赞赏!
问问题
1025 次
2 回答
1
这是为您提供更详细答案的文章,包括代码:
http://igrali.wordpress.com/2011/09/27/how-to-pin-a-hubtile-to-start-screen/
基本上,您创建一个新的 StandardTileData,然后调用 ShellTile.Create。StandardTileData 对象的信息应该从 HubTile 对象传递:
private void CreateLiveTile(HubTile hubtile)
{
StandardTileData LiveTile = new StandardTileData
{
BackgroundImage = ((System.Windows.Media.Imaging.BitmapImage)
hubtile.Source).UriSource,
Title = hubtile.Title,
BackTitle = hubtile.Title,
BackContent = hubtile.Message
};
在文章中找到更多详细信息!
问候
于 2011-09-27T00:21:57.640 回答