Showing Contextual Commands
Some app bar commands apply to the entire app. Other app bar commands apply only when an item is selected. For example, it might make sense to always display an Add button in the app bar. Displaying a Delete or Edit button, on the other hand, makes sense only when an item is selected.
The app bar has two built-in sections named "global"
and "selection"
. By default, when you add commands to the app bar, the commands appear in the global section. These commands appear on the right-hand side of the app bar.
You also have the option of adding commands to the selection section. These commands appear on the left-hand side of the app bar. Commands in the selection section should appear only when something is selected.
Imagine ...
Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.