Say I have a C# Silverlight 3 application with a number of pages. The first page is called Home, and the second page is called Details. The only way to navigate to details is programmatically. How do I do this?! Looked everywhere for the answer and all i've found are xaml uri mapper implementations....
Help greatly appreciated
C# App.Current.Host.NavigationState = "/Welcome";
XAML
The best solution is:
Add this code to your App.xaml.cs:
And then, to navigate between pages, you'll just have to call:
c#:
XAML:
Even your "details" page should be mapped (despite what you said.)
Try using this. This worked for me.
((System.Windows.Controls.Frame)(this.Parent)).Navigate(new Uri("/Import",UriKind.Relative));
Have you tried the NavigationService?
this.NavigationService.Navigate(new Uri("Details.xaml", UriKind.Relative));