Windows Phone导航过渡延迟和空白屏幕

我正在使用WP Toolkit在我的应用程序页面之间进行转换,它运行正常,但是在从一个页面导航到另一个页面时,我在转换之间得到这种奇怪的延迟,它只是显示一个空白的屏幕,显然看起来不太好,没有任何转换,它会立即打开页面,没有任何延迟或空白屏幕。 这花了将近2天的时间,我不知道什么是错的,如果有人可以帮助我或建议另一个页面转换库,我会很感激。

(我尝试过WP7Contrib转换,但我遇到了同样的问题,不确定它是我的应用程序还是库)

我建议你在页面之间创建自己的幻灯片切换。 其实很简单。 创建一个故事板并在您导航的页面和您要进入的页面中的onNavigatingFrom和onNavigatedTo函数中播放它们。 它只是给了我在我的应用程序中想要的内容和方式。 删除其他引用可使您的代码更加优化。

事实上,转换之间的背景是黑色的,为了避免这种行为,我通过在App.Xaml.cs中设置背景来解决问题

private void InitializePhoneApplication() { if (phoneApplicationInitialized) return; // Create the frame but don't set it as RootVisual yet; this allows the splash // screen to remain active until the application is ready to render. RootFrame = new TransitionFrame(); var brush = new ImageBrush { ImageSource = new System.Windows.Media.Imaging.BitmapImage(new Uri("Images/Background.jpg", UriKind.Relative)), Opacity = 0.8d }; RootFrame.Background = brush; RootFrame.Navigated += CompleteInitializePhoneApplication; // Handle navigation failures RootFrame.NavigationFailed += RootFrame_NavigationFailed; // Ensure we don't initialize again phoneApplicationInitialized = true; } 

这样我的所有页面都有我的背景,并且在过渡期间不再显示黑色背景。