WP8.1商店应用SystemTray的变化

Posted by baicai on April 16, 2014

原Microsoft.Phone.Shell中的SystemTray,已经改到Windows.UI.ViewManagement中<span style="line-height: 1.6em;">StatusBar了。</span>

只能在代码中设置相关属性。</span> </p>

如:

StatusBar statusBar = StatusBar.GetForCurrentView();
// 显示StatusBar
await statusBar.ShowAsync();
// 隐藏StatusBar
// await statusBar.HideAsync();
// 设置ProgressIndicator
statusBar.ProgressIndicator.Text = "test...";
await statusBar.ProgressIndicator.ShowAsync();

msdn