As far as I know, in Windows 8 application programming, the MainPage is a name given to the default page of the application, and the Page object doesn't contain the definition for
Current
, did you try to use it for
Window.Current
like thing? So the error is there, where did that property come from? Have a look at the
Page[
^] class and see for yourself.
However, the navigation works for the Frames of the page. Where you change the content of the Frame object.
Application life cycle documentation[
^]. One more thing that I recall while learning this navigation 2 days ago, was that you need to enable the
NavigationCacheMode
property of the page. Which will enable you to reserve the data of your page, inside the memory and upon loading the page would be loaded from the memory and not as a new page.
So you're required to use the
Frame.Navigate(typeof(YourPage));
possibly the Frame would be replaced by the frame object of your page, if you're using the default code (code that Visual Studio generated) then it is written as rootFrame.