Freigeben über


AppBarCommand.section property

Gets or sets the section of the AppBar that hosts this AppBarCommand.

Syntax

var section = appBarCommand.section;

Property value

Type: String**

One of the following values:

Value Condition
"primary"

This value indicates that the command should be displayed in the AppBar's action area if there is sufficient room available. If there is insufficient room to hold all primary commands in the action area, commands are automatically moved into the overflow area.

"secondary"

This value indicates that the command should be displayed in theAppBar's overflow area at all times.

"global"

Deprecated. Use "primary" or "secondary" instead.

"selection"

Deprecated. Use "primary" or "secondary" instead.

 

Remarks

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI

See also

AppBarCommand

AppBar

AppBarIcon

BackButton

NavBar

Your first app - Part 3: PageControl objects and navigation

Navigating between pages (HTML)

Adding app bars

Adding nav bars

HTML AppBar control sample

HTML NavBar control sample

Navigation and navigation history sample

Designers

Command patterns

Navigation patterns

Guidelines for app bars

Bottom app bar

Top app bar