标签:
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"]);
标签:
原文地址:http://www.cnblogs.com/xlyg-14/p/4851751.html