0

I have control , which has navigation buttons . Please tell me how to navigate from a user control on the page.(The project with UserControl is separate from the project with pages). I tried to use: Frame.Navigate(typeof(SecondPage)); But project can have only one relationship.

Kulasangar
  • 9,046
  • 5
  • 51
  • 82
Georgy
  • 97
  • 7

1 Answers1

1

Both Worked for me, to navigate from UserControl to Page:

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

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

karan
  • 3,319
  • 1
  • 35
  • 44