不包含';RootVisual';在Windows Phone 8.1中

本文关键字:Phone RootVisual 包含 Windows | 更新日期: 2024-09-21 00:37:40

在此代码中,"RootVisual"在WP8.1 中不存在

(Application.Current.RootVisual as 
    PhoneApplicationFrame).Navigate(new Uri("/FeedBackMessageBox.xaml", 
    UriKind.Relative));

不包含';RootVisual';在Windows Phone 8.1中

应用程序。RootVisual仅适用于Silverlight应用程序。对于Windows Phone运行时应用程序,请使用Windows。UI。Xaml。窗内容:

(Windows.UI.Xaml.Window.Current.Content as Frame).Navigate(typeof(FeedBackMessageBox),args);

有关Windows运行时应用程序中导航的更多详细信息,请参阅Quickstart:在页面之间导航(XAML)。