silverlight - How to navigate without HyperlinkButton beatween two pages? -


I create two pages on my scratch silver application, pages appear on the main page (main page is a user control ). Now, I want to see page 1 on top and navigate to page 2.

I can not add the hyperlink button.

How can I add page 2? And how can I navigate from page 1 to page 2 (can be from the main page that contains page 1 and page 2)

I try to do something deceptive and not work.

Code

  & lt; Navigation: Frame x: name = "framedivator" source = "/ view / page 1.xaml" & gt; // Anyway, page 2 needs to be added & lt; / Navigation: Frame & gt;    

Are you trying to show both pages at once? And why do not you want a hyperlink button for us? If you want users to click on something and go to page 2, but you do not want to look like a hyperlink button, you can change the contents of the hyperlink button.

  & lt; HyperlinkButton.Content & gt; & Lt; Image ... /> & Lt ;! - or whatever - /> & Lt; /HyperlinkButton.Content>   

For whatever reason you do not want to use the hyperlink button, you can navigate with the code.

  FrameNavigator.Navigate (uri);   

Please do what you are trying to do and I can give a better answer.

Comments