C# Silverlight 3 - Programmatically Navigate Between Pages?

Goober picture Goober · Sep 30, 2009 · Viewed 21.8k times · Source

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

Answer

Kees Kleimeer picture Kees Kleimeer · Sep 30, 2009

Have you tried the NavigationService?

this.NavigationService.Navigate(new Uri("Details.xaml", UriKind.Relative));