I have a Windows Phone 8.1 project, where the main view is a pivot. The app has an applicationbar, which shows different items, depending on which pivotitem the user currently is. I also use the caliburn.micro 2 framework.
My problem is that I cannot change the AppBar when the user changes the current pivotitem.
I had different approaches to solve this problem:
- In WP8 i could set the "BindableAppBar" in the different PivotViews. With the AppBarConductor it was easy to manage this problem. But for WP8.1 the BindableAppBar is not available and I cannot find a built in AppBarConductor.
- It seems not possible to create the AppBar in the code behind, because then i cannot use other caliburn conventions (such as x:Name="Reload" --> calls Reload-Method in the ViewModel)
- Google a lot
Hope there is a better answer somewhere than "use the same AppBar in all pivotitems"...:-)