1

我有MainPage.xamlPanoramaPage1.xaml

如何从MainPagetoItem1Item2in导航PanoramaPage

例如: Button1->Item1Button2->Item2

4

1 回答 1

0

您可以使用标准导航:

this.NavigationService.Navigate(new Uri("PanoramaPage1.xaml?buttonid=button1",UriKind.Relative));

在对象变量中传递您的目标,然后在全景页面中处理:

protected override void OnNavigatedTo(NavigationEventArgs e)
{
  if ( this.NavigationContext.QueryString.ContainsKey( "buttonid" ) 
  {
      string buttonid = this.NavigationContext.QueryString[ "buttonid" ];
  }
}
于 2013-01-11T20:38:41.887 回答