在mainPage页面中,建立了ListView控件并绑定了数据源,
点击其中的item元素,实现了页面跳转,但就是无法实现被选中的item值的传递,
请教大家帮忙指点~~~~
代码如下:
private void lv_ItemClick(object sender, ItemClickEventArgs e)
{
string s1 = lv.SelectedItem.ToString();
this.Frame.Navigate(typeof(PetPropertyPage1),s1);
}
http://blog.csdn.net/minsenwu/article/details/39236181
this.NavigationService.Navigate(new Uri("/SecondPage.xaml?CustomerId=1234&Product=555", UriKind.Relative));
protected override void OnNavigatedTo(NavigationEventArgs e)
{
base.OnNavigatedTo(e);
foreach (var item in NavigationContext.QueryString)
{
MessageBox.Show("Query String [" + item.Key + "] = " + item.Value);
}
}