QuickAccessToolbar.ApplicationDefaults property

Represents a container for default Commands in the Quick Access Toolbar (QAT).

Usage

<QuickAccessToolbar.ApplicationDefaults>
  child elements
</QuickAccessToolbar.ApplicationDefaults>

Attributes

There are no attributes.

Child elements

Element Description
Button
Must occur at least once.

CheckBox
Must occur at least once.

ComboBox
Must occur at least once.
Note: Windows 8 and newer.
DropDownGallery
Must occur at least once.
Note: Windows 8 and newer.
InRibbonGallery
Must occur at least once.
Note: Windows 8 and newer.
SplitButtonGallery
Must occur at least once.
Note: Windows 8 and newer.
ToggleButton
Must occur at least once.

Parent elements

Element
QuickAccessToolbar

Remarks

Optional.

May occur at most once for each QuickAccessToolbar.

A minimum of one child element must be specified.

A maximum of 20 child elements can be specified.

Examples

The following example demonstrates the basic markup for the QuickAccessToolbar.

This section of code shows the QuickAccessToolbar.ApplicationDefaults control declaration.

      <Ribbon.QuickAccessToolbar>
        <QuickAccessToolbar CommandName="cmdQAT"
                            CustomizeCommandName="cmdCustomizeQAT">
          <QuickAccessToolbar.ApplicationDefaults>
            <Button CommandName="cmdButton1"/>
            <ToggleButton CommandName="cmdMinimize"
                          ApplicationDefaults.IsChecked="false"/>
          </QuickAccessToolbar.ApplicationDefaults>
        </QuickAccessToolbar>
      </Ribbon.QuickAccessToolbar>

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps only]
Minimum supported server
Windows Server 2008 R2 [desktop apps only]

See also

Quick Access Toolbar control