Skip to main content

BarItem.CategoryName Property

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

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core


public string CategoryName { get; set; }

Property Value

Type Description

A string that specifies the name of the category to which the bar item belongs.


Use the CategoryName property to assign a bar item to a category. Another way to assign a bar item to a category is to use the BarItem.Category property. To learn more, see Categories.


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

The following image shows the result:


View Example

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)

        End Sub
    End Class
End Namespace
See Also