Windows Phone 8.1 从用户控件导航

Windows Phone 8.1 Navigation from usercontrol

我有控件,它有导航按钮。请告诉我如何从页面上的用户控件导航。(带有 UserControl 的项目与带有页面的项目是分开的)。 我尝试使用: Frame.Navigate(类型(第二页)); 但是项目只能有一个关系。

两者都对我有用,从 UserControl 导航到页面:

1。 (Window.Current.Content as Frame).Navigate(typeof(MyUserControl));

2。 await Dispatcher.RunAsync(CoreDispatcherPriority.Normal, () => (Window.Current.Content as Frame).Navigate(typeof(MyUserControl)));