Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T04:51:31+00:00 2026-05-24T04:51:31+00:00

I know how to navigate from one pivot item to another, within the pivot

  • 0

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?

UPDATE:

Here is the solution I used, based on the answer from Matt Lacey:

From button click event on MainPage:

private void button_Click(object sender, RoutedEventArgs e)
        {
            string parameter = "myPivotItem1";
            NavigationService.Navigate(new Uri(string.Format("/MyPivotPage.xaml?parameter={0}", parameter), UriKind.Relative)); 
        }

Overrode OnNavigatedTo for the pivot page, and extracted the querystring:

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;
            }
        }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T04:51:31+00:00Added an answer on May 24, 2026 at 4:51 am

    You can set the SelectedIndex to the index of the item you want.

    Be careful of the delayed loading of item though.

    Update:
    On the first page, pass an indicator of which pivotItem to display in the querystring** of the page you are navigating to.
    In the OnNavigatedTo event on the page, containing the pivot, create a handler for the Loaded event of the Pivot and use that to set the SelectedIndex.

    ** Other ways of doing this are available.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know how to navigate to a file or a class, but can I
When I navigate on a website utilizing MasterPages, does the application know what page
I'm using HtmlUnit in Java to navigate to a web page. From that webpage
in my app for WP7(mango) I need to navigate the user from one point
Know of an OCAML/CAML IDE? Especially one that runs on Linux?
Know this might be rather basic, but I been trying to figure out how
I have two view controllers, in which I am using navigation controller to navigate
I'm binding the jQuery-ui autocomplete to more than one element in my page as
Is there a way of having a user select an item from an HTML
I would like to use one Activity which holds several fragments and navigate among

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.