Skip to content

Instantly share code, notes, and snippets.

@edewit
Created May 26, 2015 13:02
Show Gist options
  • Save edewit/4971061126108665c235 to your computer and use it in GitHub Desktop.
Save edewit/4971061126108665c235 to your computer and use it in GitHub Desktop.
Navigate to url
// e.Arguments = "/MainPage.xaml?message=bla&test=super"
var page = e.Arguments.Substring(1, e.Arguments.IndexOf('.') - 1);
var data = UrlQueryParser.ParseQueryString(e.Arguments);
var type = typeof(App); //known type
// NameSpace.Class,Assembly
rootFrame.Navigate(Type.GetType(type.Namespace + "." + page + "," + type.Namespace), data);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment