简体   繁体   English

如何在Windows Phone 8.1运行时应用程序中使用shellTile

[英]How to use shellTile in windows phone 8.1 run time Application

In the code below ShellTile is working in WP8.0, but when using WP8.1, it is not showing ShellTile. 在下面的代码中ShellTile在WP8.0中工作,但是在使用WP8.1时,它没有显示ShellTile。

What is the alternative to use ShellTile in WP8.1 Universal Apps? 在WP8.1 Universal Apps中使用ShellTile的替代方法是什么?

ShellTile shellTile = ShellTile.ActiveTiles.FirstOrDefault(tile => tile.NavigationUri.ToString().Contains(partOfUri));

ShellTile is only available for Silverlight Apps. ShellTile仅适用于Silverlight应用程序。 In Universal Apps you have to use ToastNotificationManager. 在Universal Apps中,您必须使用ToastNotificationManager。

See this question for examples. 有关示例,请参见此问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM