Posts

Showing posts from April, 2017

UWP - Centralize the Command Bar Menu in the page

The Command Bar Menu is located on the left side of the page by default. But I need to move it to the central location in the page. To do so, I have to modify the style XML of Command Bar.  Under "<Style TargetType="CommandBar">...." , located this line " <ItemsControl     x:Name="PrimaryItemsControl" " and then change it as below: <ItemsControl     x:Name="PrimaryItemsControl"     HorizontalAlignment="Center"     MinHeight="60"      IsTabStop="False"      Grid.ColumnSpan="2"> Afterwards, you can see the Command Bar Menu is located on the central of the page.