string uriText = String.Format("/Product.xaml?productID={0}&type={1}", productID, productType); mainFrame.Navigate(new Uri(uriText), UriKind.Relative);
int productID, type; if (this.NavigationContext.QueryString.ContainsKey("productID")) productID = Int32.Parse(this.NavigationContext.QueryString[ "productID"]); if (this.NavigationContext.QueryString.ContainsKey("type")) type = Int32.Parse(this.NavigationContext.QueryString[ "type"]);