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 6020453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:34:17+00:00 2026-05-23T03:34:17+00:00

I am just getting started on Windows phone 7 development and am stuck at

  • 0

I am just getting started on Windows phone 7 development and am stuck at this problem while using Pivot control:

I have 3 pivotitems and the swipe movement to navigate between pivots are working fabulously well, But the problem is…

I need to call a different function, say function1() when one pivotitem is visible and then call a function say function2() as soon as user swipes to another pivotitem.

Is there any delegate method which handles this..?

Thanks for your help!

  • 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-23T03:34:17+00:00Added an answer on May 23, 2026 at 3:34 am

    You can handle the Pivot control’s LoadingPivotItem event. This event passes PivotItemEventArgs which includes a property letting you know what pivot is about to be shown. Using this, you can then load the relevant controls and properties. For example,

    private void pivotMain_LoadingPivotItem(object sender, PivotItemEventArgs e)
    {
          if (e.Item == pivotItem1)
          {
              //Load Pivot Item 1 stuff
          }
    
          if (e.Item == pivotItem2)
          {
              //Load Pivot Item 2 stuff      
          }
    }
    

    In the example above, pivotItem1 and pivotItem2 are the names I’ve given each PivotItem so you can give whatever names you want to each PivotItem and check if they’re about to be shown. If you want to handle the event after the PivotItem has loaded, you can use the Pivot.LoadedPivotItem method.

    If you want to know which PivotItem is currently being displayed at any time, you can use the Pivot.SelectedIndex method. It’s zero-based, so the first PivotItem will have an index of 0, the second will have 1 and so on.

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

Sidebar

Related Questions

Just getting started using MVC in ASP.NET, I'm going to have it so users
So, I'm just getting started with Bazaar. I am using Bazaar explorer for Windows
Just getting started with Powershell and have a quick question. Trying to run this
OK have just started getting this error and I'm not sure why. I have
Note: I'm just getting started with Jenkins plugin development and have never used maven
I am just getting started with flex and am using the SDK (not Flex
I am just getting started with Silverlight and have recently added a Silverlight project
I am just getting started with expression trees so I hope this makes sense.
I am just getting started creating an AJAX application using server side push. I
Duplicate of..: Version Control. Getting started… How do I begin using SVN? SVN installation

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.