The previous article introduced the AppBar content. This article continues to introduce how to use CommandBar. Compared with AppBar, CommandBar is relatively simple in terms of development and use. In the key layout, it can be divided into the master area (Primary Commands) and the Secondary control area (Secondary Commands). By default, the main control area is displayed on the right side of the menu, and the auxiliary control area is on the left side.
If the application menu bar contains only the AppBarButton, AppBarToggleButton, and AppBarSeparator controls, and there are no special layout format requirements, you can use the CommandBar control. When the application size changes, the CommandBar also adjusts the size.
As shown in, the buttons written to SecondaryCommands are assigned to the left of the menu bar. The CommandBar introduction is here. You can practice it.