navigate frame框架

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"]);

 

posted @ 2015-10-01 23:36  西楼月光  阅读(301)  评论(0编辑  收藏  举报