Prathamesh More
Prathamesh More

Reputation: 1489

How to navigate page in Windows Phone 8

When I trying to navigate pages in Visual Studio 2015 but It shows an error when compiling.

Upvotes: 2

Views: 105

Answers (1)

jzeferino
jzeferino

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

Related Questions