Bar

BarManagerCategory Class

An individual category.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public class BarManagerCategory :
    DependencyObject
Public Class BarManagerCategory
    Inherits DependencyObject

Related API Members

The following members accept/return BarManagerCategory objects:

Remarks

Categories are used to logically organize bar items. Individual categories are specified by the BarManagerCategory objects. All categories reside within the BarManager.Categories collection, and are displayed on the Commands page of the Customization Window.

To specify a category for a bar item, use the BarItem.CategoryName or BarItem.Category property. Ensure that the category assigned to the bar item exists in the BarManager.Categories collection.

The category's name must be unique. To provide display captions for categories, use the BarManagerCategory.Caption property.

See Categories to learn more.

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

Inheritance

See Also