Windows CommandBar Controls


commandBar.button

Overview:

The commandBar.button control represents a Windows CommandBar button.

Attributes:

Bindings:

  • onClick (command + params)

Example:

{ control: "commandBar.button", text: "Add", icon: "Add", commandBar: "Bottom", commandType: "Secondary", binding: { command: "vary", amount: 1 } }

commandBar.toggle

Overview:

The commandBar.toggle control represents a Windows CommandBar button that can be toggled on and off.

Attributes:

Bindings:

  • value
  • onToggle (command + params)

Example:

{ control: "commandBar.toggle", text: "Favorite", winIcon: "Favorite", binding: { value: "toggleState", onToggle: "onToggle" } }