Skip to main content
Bar

AddBarItemAction Class

Adds a bar item to the BarManager.Items collection.

Namespace: DevExpress.Xpf.Bars

Assembly: DevExpress.Xpf.Core.v23.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