When a pivot item is changed in my Windows Phone 8.1 app page, I need to change the AppBar at the bottom of the page. All examples that I've found around this are related to the Silverlight Windows Phone 7/8 apps and don't apply to the Universal App Windows Phone 8.1.
<AppBar x:Name="AppBar1" Visibility="Visible">
<CommandBar>
<AppBarButton x:Name="Save" Icon="save" Label="Save" Click="AppBarButton_Click" />
<AppBarButton x:Name="Cancel" Icon="cancel" Label="Cancel" Click="AppBarButton_Click" />
</CommandBar>
</AppBar>
<AppBar x:Name="AppBar2" Visibility="Collapsed">
<CommandBar x:Name="AppBar2">
<AppBarButton x:Name="Add" Icon="save" Label="Add" Click="AppBarButton_Click" />
</CommandBar>
</AppBar>