WP8.1的shell:SystemTray去哪了?

WP8.1 中的SystemTray被 StatusBar 代替了。在Windows.UI.ViewManagement 命名空间下,而且只能在后台代码中设置,XAML中不行。用法是这样的:

StatusBar statusBar = StatusBar.GetForCurrentView();
// 显示StatusBar
await statusBar.ShowAsync();
// 隐藏StatusBar
// await statusBar.HideAsync();
// 设置ProgressIndicator
statusBar.ProgressIndicator.Text = "test...";
await statusBar.ProgressIndicator.ShowAsync();
原文地址:https://www.cnblogs.com/wzwyc/p/6291910.html