title: Is there a way to specify which pivot item to navigate to in a pivot page?
body: <p>I know how to navigate from one pivot item to another, within the pivot page, but what if the navigation is initiated from another page entirely?</p>
  
  <p>UPDATE:</p>
  
  <p>Here is the solution I used, based on the answer from Matt Lacey:</p>
  
  <p>From button click event on MainPage:  </p>
  
  <pre><code>private void button_Click(object sender, RoutedEventArgs e)
          {
              string parameter = "myPivotItem1";
              NavigationService.Navigate(new Uri(string.Format("/MyPivotPage.xaml?parameter={0}", parameter), UriKind.Relative)); 
          }
  </code></pre>
  
  <p>Overrode OnNavigatedTo for the pivot page, and extracted the querystring: </p>
  
  <pre><code>protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
          {
              base.OnNavigatedTo(e);
              string newparameter = this.NavigationContext.QueryString["parameter"];
              if (newparameter.Equals("myPivotItem1"))
              {
                  myPivotControl.SelectedItem = myPivotItem1;
              }
              else if (newparameter.Equals("myPivotItem2"))
              {
                  myPivotControl.SelectedItem = myPivotItem2;
              }
          }
  </code></pre>