Skip to content

AppBarButton

CommandBar icon button with label position overrides.

import QWinUI3.Extras · src/extras/QWinUI3/Extras/AppBarButton.qml

Category: Buttons & commands · Library: v2.80

← Component index

Gallery: AppBarButtonsrc/gallery/pages/AppBarButtonPage.qml

Extends IconicButton.

Example

AppBarButton {
    text: qsTr("Add")
    symbol: FluentIcons.Add
}

Notes

CommandBar icon+label button; symbol / labelPosition for layout. isCompact collapses the label (WinUI IsCompact); keyboardAcceleratorText shows a shortcut hint. barCompact (from CommandBar.compact) shrinks icon-only hit target toward ~40px (Edge-like).

API

Properties

Name Type Description
labelPosition string Override CommandBar label position when set (bottom | right | collapsed)
barLabelPosition string Injected by CommandBar (do not parent-walk)
barCompact bool Injected by CommandBar.compact — denser icon-only sizing
isCompact bool WinUI IsCompact — hide label, icon-only
keyboardAcceleratorText string Shortcut hint shown under/beside the label (WinUI KeyboardAcceleratorText)
effectiveLabelPosition string Resolved label position

Signals

No custom signals (use inherited signals from the base type).

Methods

No custom methods (use inherited methods from the base type).


Generated from module sources by scripts/generate_component_docs.py — do not edit by hand.