且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Windows 8 Metro App(网格应用程序)过渡出现黑色闪烁

更新时间:2021-11-05 08:05:00

在App.xaml.cs中,设置应用程序根框架的background属性.您可以在导航到初始页面之前,使用覆盖的OnLaunch方法进行操作.

In App.xaml.cs, set the background property of the app's root frame. You can do it in the overridden OnLaunch method, just before navigation to the initial page.

rootFrame.Background =新的SolidColorBrush(Colors.White); //什么颜色

rootFrame.Background = new SolidColorBrush(Colors.White); //whatever color