3

How do I add an appbar with buttons to a Windows Phone 8.1 app using the Hub template? I do not see any clear examples of how to do this.

Specifically, using the Hub template, I want to add appbar menu items to the ItemsPage.xaml.

Claus Jørgensen
  • 25,167
  • 9
  • 75
  • 139
Scott Nimrod
  • 10,451
  • 8
  • 46
  • 94
  • I've removed a tag from question's title - please note than in most cases questions [shouldn't include tag in their title](http://meta.stackexchange.com/questions/19190/should-questions-include-tags-in-their-titles). I've also added an appropriate one. – Romasz Apr 07 '14 at 20:27

1 Answers1

5

In Windows Phone 8.1 projects you have to use the CommandBar API.

Take a look on this guide, it's for Windows 8.1, but the syntax is exactly same. Note that you have to only use the BottomAppBar where the PrimaryCommands are displayed as standard AppBar buttons as we know them, and the SecondaryCommands are displayed as Menu Items.

Martin Suchan
  • 10,490
  • 3
  • 32
  • 63