如何在Windows Phone 8.1 (Windows Runtime, Universal)下更改系统栏进度指示器



如何在Windows Phone 8.1 (Windows Runtime, universal)中像Facebook Beta应用程序一样更改系统栏进度指示器颜色

图片:https://i.stack.imgur.com/irLrJ.jpg

奥林匹克广播服务公司。:

1 -话机强调色不是白色(FGS)…2 -系统栏的前景色已经变成了白色…3 -我已经尝试改变应用程序的资源,如"PhoneAccentColor"和什么都没有…

编辑:错误理解问题。当我找到解决办法时,我会回来的。

要实现这一点,你必须改变StatusBar ForegroundColor属性。由于无法通过XAML更改它,因此必须通过后面的代码完成,如下所示:

StatusBar statusBar = StatusBar.GetForCurrentView();
statusbar.ForegroundColor = Colors.Black;
///And then show or hide the Progressindicator like so
await statusBar.ProgressIndicator.ShowAsync();
await statusBar.ProgressIndicator.HideAsync();

我正在使用这个,它工作得很好。

有关状态栏的更多信息(它在ProgressIndicator中烘焙),请查看Shawn Kendrot的这些博客文章:

Windows Phone XAML应用中新状态栏与系统托盘的区别

显示系统ProgressIndicator在Windows Phone 8.1 XAML应用

最新更新