AppBarButton
- Assembly:
Fluence.Wpf - Namespace:
Fluence.Wpf.Controls
public class AppBarButton : Button
Represents a templated command button for command bar surfaces such as CommandBarFlyout, mirroring the WinUI 3 AppBarButton contract.
Remarks: The default style renders the compact primary-bar appearance: a 40x40 hit target with a centered Icon and the Label surfaced as a tooltip. Inside the overflow menu of a CommandBarFlyout the presenter applies the CommandBarFlyoutSecondaryAppBarButtonStyle resource, which renders the icon and label side by side in a full-width menu-item row.
Base type: Button (including inherited WPF and .NET members)
Constructors
AppBarButton
public AppBarButton()
Creates a new AppBarButton instance.
Properties
Icon
public object? Icon { get; set; }
Gets or sets the icon shown on the button, typically a FontIcon. Arbitrary content is supported and is hosted in a centered content presenter.
Label
public string Label { get; set; }
Gets or sets the text label that describes the command. The compact default style surfaces the label as a tooltip; the overflow style renders it next to the icon.
Dependency property identifiers
Use these identifiers with WPF property APIs. The matching CLR properties appear above when the control exposes them.
IconProperty
public static readonly DependencyProperty IconProperty
Identifies the Icon dependency property.
LabelProperty
public static readonly DependencyProperty LabelProperty
Identifies the Label dependency property.