How to go to a new page in the metro application?

trying to write a metro application in C # right now. There was a problem trying to go to a new page.

<HyperLinkButton NavigateUri="foo.xaml"/> 

does not work because the NavigateUri field does not exist. The Windows.Navigate namespace is also unavailable, so you're out of luck. What is the right way to go to a new page in my metro application?

+5
source share
4 answers

You can handle the Button Button Click control (in fact, you can use all the events with the following code), because the Metro HyperLink inherits only the ButtonBase class without any special properties or events, such as NavigateUri.

, ​​ .xaml :

this.Frame.Navigate("VideoStoryCreator.ComposePage");

+6

-

click -

var page = new PageName();
Window.Current.Content = page;

  • Silverlight Navigation

Frame/Page Navigation, :

( ) . create. - UserControl

- http://www.markermetro.com/2011/11/technical/windows-8-metro-style-apps-implementing-navigation-with-xaml/

, !

, Bhavik

+5

Handle the Click event on the button, and then call the Navigate method on your frame

+3
source

just enter the following code in the click event

this->Frame->Navigate(TargetPageName::typeid,this);
-1
source

All Articles