Navigate to another page in Code

Sep 12, 2013 at 2:28 PM
Would someone point me on the right track to be able to navigate to another page with code.
Sep 12, 2013 at 3:30 PM
Edited Sep 12, 2013 at 3:30 PM
Figured it out.
DefaultLinkNavigator dln = new DefaultLinkNavigator();
dln.Navigate(new Uri("<PATH>", UriKind.Relative), this);
Sep 16, 2013 at 3:30 PM
it's very simply,just use the code(.net 4.5):

NavigationCommands.GoToPage.Execute("your xaml uri", Application.Current.MainWindow/other embed window);
but it use Application.LoadComponent(uri)(DefaultContentLoader.cs),so first time may be you will has a new usercontrol class instance...

if you use .net 4,you should reference the shell library.