Skip to main content
A newer version of this page is available. .
Bar

BarManagerCategoryCollection Class

Represents a collection of categories.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public class BarManagerCategoryCollection :
    ObservableCollection<BarManagerCategory>

The following members return BarManagerCategoryCollection objects:

Remarks

Use the BarManager.Categories property to access the collection of categories owned by the BarManager. Each category is represented by the BarManagerCategory object.

To learn more, see Categories.

Example

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