Both options can be performed.
To display only the app bar icons relevant to the page , you can use the Panorama.SelectionChanged event:
var currentPanormaItem = ((Panorama)sender).SelectedItem if(currentPanormaItem.Equals(firstPageItem)) { // Set AppBar icons for first page } else if(currentPanormaItem.Equals(secondPageItem)) { // Set AppBar icons for secondpage }
If you know which panorama item is selected, you can set the application panel icon accordingly.
Changing the selected Panorama item can be done as follows:
panoramaControl.DefaultItem = panoramaControl.Items[indexToSet];
Although changing the selected Panorama index is possible, I would suggest using the Pivot element. Using the Pivot element is easier to track the selected element, and you get a nice animation when you programmatically switch the selected page.
source share