Skip to main content

AppBarButton.Label Property

Gets or sets the object used to render the label of the app bar button.

Namespace: DevExpress.Xpf.WindowsUI

Assembly: DevExpress.Xpf.Controls.v23.2.dll

NuGet Package: DevExpress.Wpf.Controls

Declaration

public object Label { get; set; }

Property Value

Type Description
Object

The object used to render the label of the button.

Remarks

A button label specified by the Label property can be any Object. In most cases, you use a String value to specify the AppBarButton‘s label. It is also possible to use a custom object to represent the label and apply a data template to render the AppBarButton‘s label. For this purpose, the AppBarButton provides the AppBarButton.LabelTemplate and AppBarButton.LabelTemplateSelector properties. To learn more on how to apply a data template to render the label, see the AppBar Control topic.

Buttons can be displayed without labels by setting the AppBarButton.IsCompact property to true.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Label property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also