How to horizontally align AppBarButton in command bar

前端 未结 3 757
慢半拍i
慢半拍i 2021-02-06 00:54

I want to align my single AppBarButton to the right on a CommandBar in a Page.BottomBar?

In design it shows the app bar but

3条回答
  •  不要未来只要你来
    2021-02-06 01:51

    This works for me getting a left justified back button. It is courtesy of Rudy Huyn's blog at: Display an AppBarButton on the left

    
        
            
                
            
    
            
        
    
    

    Rudy has some theories about why Microsoft made it this way. Content on the left everything else on the right.

    By the way, that IsCompact="True" is very important or you get annoying labels as well as icons.

    Cheers Tim

提交回复
热议问题