Search code examples
windows-phone-7pivotviewer

Controlling pivotItems in pivot in windows phone 7


i want to control that which pivotItem comes at first whenever my app starts? code please


Solution

  • You can use

    myPivotControl.SelectedIndex = 5;
    

    or, if the pivot item has a Name:

    myPivotControl.SelectedItem = myPivotItem;