Skip to main content
Bar

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

AddBarItemAction Class

Adds a bar item to the BarManager.Items collection.

Namespace: DevExpress.Xpf.Bars

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

NuGet Package: DevExpress.Wpf.Core

#Declaration

[Browsable(false)]
public class AddBarItemAction :
    InsertBarItemAction

#Remarks

Use the inherited InsertBarItemAction.Item property to specify the item to be added to the BarManager.Items collection.

The following code shows how to use an AddBarItemAction object:

<dxb:AddBarItemAction>
    <dxb:AddBarItemAction.Item>
        <dxb:BarButtonItem x:Name="myBarItem"/>
    </dxb:AddBarItemAction.Item>
</dxb:AddBarItemAction>

See Bar Actions to learn more.

#Implements

See Also