In windows phone 8, its very easy to add an App Bar and manage it, but now i test new windows phone 8.1 SDK to build a project with new Geofencing feature but i don\'t know how
In Windows Phone 8.1, We can use BottomAppBar
to add App Bar. Usually we use CommandBar
to create basic BottomAppBar. CommandBar contains two collection: PrimaryCommands
and SecondaryCommands
, It's similar with shell:ApplicationBar.Buttons
and shell:ApplicationBar.MenuItems
in Windows Phone 8.
Read this demo please, we create a CommandBar with two buttons: ZoomOut and ZoomIn, and two menuItem:Test01 and Test02 :
Edit: Now the code is correct!