If you have, for example, the following definition for a Pivot element:
<controls:Pivot x:Name="SettingsPivot" Title="settings"> <controls:PivotItem x:Name="GeneralSettings" Header="general settings"> </controls:PivotItem> <controls:PivotItem x:Name="ConnectivitySettings" Header="connectivity settings"> </controls:PivotItem> <controls:PivotItem x:Name="OtherSettings" Header="other settings"> </controls:PivotItem> </controls:Pivot>
Then you can go to, for example, other settings using this code in the button click event handler:
SettingsPivot.SelectedItem = OtherSettings;
Jari
source share