A newer version of this page is available. Switch to the current version.

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.v20.2.dll

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.

See Also