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
  • 7,612
  • 4
  • 44
  • 78
Georgy
  • 97
  • 6

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,279
  • 1
  • 34
  • 44