In a Windows Phone 7 application I use a Pivot for UI. As one of the items of the Pivot a XAML page is inserted, as:
<Pivot_Item>
<myviews:a_page.xaml/>
</Pivot_Item>
An application bar – a standard template – is used within that page only, as the whole Pivot doesn’t need it. But this doesn’t work. For now I was only able either to activate the bar for the every Pivot item or to use it for a separate non-pivot page.
The easiest way to do this is simply to handle the Pivot’s LoadingPivotItem event.
Assign that PivotItem a name:
In the code: