Skip to main content
Bar

RemoveBarItemAndLinkAction Class

Removes a bar item from the BarManager.Items collection, and removes all links to this bar item from link holders (bars, sub-menus, menus, etc).

Namespace: DevExpress.Xpf.Bars

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

#Declaration

public class RemoveBarItemAndLinkAction :
    RemoveBarItemAction

#Remarks

A bar item to be removed can be specified via the inherited BarItemActionBase.ItemName or BarItemActionBase.ItemIndex property. The BarItemActionBase.ItemIndex property is in effect if the BarItemActionBase.ItemName property is not set.


<dxb:BarManagerActionContainer>
    <dxb:RemoveBarItemAndLinkAction ItemName="btnAbout"/>
    <!--...-->

See Customizing Bars via Actions to learn more.

See Also