Bar

AddBarItemAction Class

Adds a bar item to the BarManager.Items collection.

Namespace: DevExpress.Xpf.Bars

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

Declaration

[Browsable(false)]
public class AddBarItemAction :
    InsertBarItemAction
<Browsable(False)>
Public Class AddBarItemAction
    Inherits 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