积极答复者
windows phone 8 或者 8.1 App如何自定义磁贴

问题
答案
-
你好,
目前Windows Phone 8.1所支持磁贴像素大小有71x71、150x150和310x150,分为大中小三种模式,对于桌面磁贴微软提供了诸多模板:
参考:http://msdn.microsoft.com/zh-cn/library/windows/apps/hh761491.aspx
模板功能比较简单,就是图像和文字的结合。
如果要实现复杂的磁贴组合,那就要使用RenderTargetBitmap类事先生成图像,再更新到磁贴。
--JamesWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 孟云帆 2015年2月26日 7:12
全部回复
-
你好,
目前Windows Phone 8.1所支持磁贴像素大小有71x71、150x150和310x150,分为大中小三种模式,对于桌面磁贴微软提供了诸多模板:
参考:http://msdn.microsoft.com/zh-cn/library/windows/apps/hh761491.aspx
模板功能比较简单,就是图像和文字的结合。
如果要实现复杂的磁贴组合,那就要使用RenderTargetBitmap类事先生成图像,再更新到磁贴。
--JamesWe are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.- 已标记为答案 孟云帆 2015年2月26日 7:12
-
private async void TileItem_Click(object sender, RoutedEventArgs e)
<AppBarButton
{
Uri square150x150Logo = new Uri("ms-appx:///Assets/StoreLogo.scale-240.png");
SecondaryTile secondaryTile = new SecondaryTile("FanfouWP_SendPage",
"磁铁名字",
"FanfouWP_SendPage",
square150x150Logo,
TileSize.Square150x150);
secondaryTile.VisualElements.Square30x30Logo = new Uri("ms-appx:///Assets/SmallLogo.png");
secondaryTile.VisualElements.ShowNameOnSquare150x150Logo = true;
secondaryTile.VisualElements.ForegroundText = ForegroundText.Dark;
await secondaryTile.RequestCreateAsync();
}
x:Name="TileItem"
Label="将此页面固定为磁贴"
Click="TileItem_Click" />