Reputation: 1489
When I trying to navigate pages in Visual Studio 2015 but It shows an error when compiling.
Upvotes: 2
Views: 105
Reputation: 7840
The accepted answer is not fully corrected, since typeof
only accepts a Type
not an instance
.
As you can read in the documentation from MSDN, to navigate use:
Frame.Navigate(typeof(MainPage));
Upvotes: 1