I'm working on a Windows 8 application project. I'm using Visual Studio 2012 and it's predefined Templates (GroupedPage, SplitPage, ItemsPage).
At this time I need to add an App bar. the way I choose is to create one and display it on all of the pages. I'm readind this article : http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj150604.aspx
To include this on my project, I set the Global page as start page on the App.xaml
protected async override void OnLaunched(LaunchActivatedEventArgs args)
...
if (!rootFrame.Navigate(typeof(GlobalPage), args.Arguments))
throw new Exception("Failed to create initial page");
...
On the Global page, I'm changing the method OnLaunched, in order to get to the real main page:
rootPage = e.Parameter as Page;
frame1.Navigate(typeof(MainPage), this);
I add event subscription for buttons, like
private void ButtonBlogList_Click(object sender, RoutedEventArgs e)
{
this.Frame.Navigate(typeof(BlogListManagement), this);
}
After launching application, the App bar is displayed, and I can navigate with the app button inside, but after the first navigation, AppBar is not displayed on the target page.
Any idea of my mistake ?
Thanks for your help.