Skip to main content

BarManagerActionContainer Class

Provides access to actions for a specific BarManagerController.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core


public class BarManagerActionContainer :

The following members return BarManagerActionContainer objects:


To define actions, use the BarManagerActionContainer.Actions collection.

A BarManagerActionContainer object can be used to define actions within a template (a DataTemplate object). This template can then be assigned to the TemplatedBarManagerController.

See Bar Actions to learn more.


This example demonstrates how to modify the current BarManager’s layout in case you do not have direct access to this BarManager. The main idea is to use ControllerBehavior that provides the capability to compose bars or ribbons from templates using built-in Bar Actions.

For versions prior to v15.1:

Use BarManager.Controllers to set a predefined DataTemplate.

The following image shows the result:


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

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

    End Class
End Namespace
See Also