How can i add AppBar in Windows Phone 8.1

后端 未结 3 1567
不思量自难忘°
不思量自难忘° 2021-02-19 05:21

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

3条回答
  •  伪装坚强ぢ
    2021-02-19 06:10

    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!

提交回复
热议问题