AppBarSeperator Control In Universal Apps

You can read my previous part:

AppBarSeperator control is used when we'd like to separate menuitems used in bottom and top Appbars.

Bitmapicon

It'd looked nice if you put these separator after every menuitems. The following is the XAML view of the output above: 

  1. <Page.BottomAppBar>  
  2.         <CommandBar IsOpen="True">  
  3.             <AppBarButton Icon="Like" Label="Like Me!" />  
  4.             <AppBarSeparator/>  
  5.               
  6.             <!-- App bar button with bitmap icon. -->  
  7.             <AppBarButton Label="Image" >  
  8.                 <AppBarButton.Icon>  
  9.                     <BitmapIcon UriSource="Assets/StoreLogo.png"/>  
  10.                 </AppBarButton.Icon>  
  11.             </AppBarButton>  
  12.             <AppBarSeparator/>  
  13.   
  14.             <!-- App bar button with font icon. -->  
  15.             <AppBarButton Label="Font" >  
  16.                 <AppBarButton.Icon>  
  17.                     <FontIcon FontFamily="Candara" Glyph="$$$"/>  
  18.                 </AppBarButton.Icon>  
  19.             </AppBarButton>  
  20.             <AppBarSeparator/>  
  21.   
  22.             <!-- App bar button with path icon. -->  
  23.             <AppBarButton Label="Whats That?" >  
  24.                 <AppBarButton.Icon>  
  25.                     <PathIcon Data="F1 M 16,12 20,2L 20,16 1,16" HorizontalAlignment="Center"/>  
  26.                 </AppBarButton.Icon>  
  27.             </AppBarButton>  
  28.         </CommandBar>  
  29.     </Page.BottomAppBar>  
We've added the AppBarSeperator control in xaml view as you can see in red highlight color. 
 
As I have explained above, AppBarSeperator is very useful for dividing menuitems. As UX its wise to divide different types of commands.
Ebook Download
View all
Learn
View all
Araf Global is a software consultancy company founded in 2016 focusing on cutting edge technologies.