Bar

BarItem.Category Property

Gets or sets the category to which the bar item belongs. This is a dependency property.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v20.1.dll

Declaration

public BarManagerCategory Category { get; set; }
Public Property Category As BarManagerCategory

Property Value

Type Description
BarManagerCategory

A BarManagerCategory object that specifies the item's category.

Remarks

You can assign an item to a category via the Category or BarItem.CategoryName property. The BarItem.CategoryName property specifies the name of the Category.

To learn more, see Categories.

Examples

This example shows how to create bar items and associate them with a custom Format category.

The following image shows the result:

E1543

Imports System
Imports System.Collections.Generic
Imports System.Configuration
Imports System.Data
Imports System.Linq
Imports System.Windows

Namespace WpfApplication3
    ''' <summary>
    ''' Interaction logic for App.xaml
    ''' </summary>
    Partial Public Class App
        Inherits Application

        Private Sub OnAppStartup_UpdateThemeName(ByVal sender As Object, ByVal e As StartupEventArgs)

            DevExpress.Xpf.Core.ApplicationThemeHelper.UpdateApplicationThemeName()
        End Sub
    End Class
End Namespace
See Also