Skip to main content
A newer version of this page is available. .
Bar

BarItemLinkBase.MergeType Property

Gets or sets how the item link behaves during merge operations.

Namespace: DevExpress.Xpf.Bars

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

Declaration

public BarItemMergeType MergeType { get; set; }

Property Value

Type Description
BarItemMergeType

A BarItemMergeType value specifying how the bar item link behaves during merge operations.

Available values:

Name Description
Default

Acts identically to the Add value.

Add

Specifies that the child BarManager’s BarItemLink should be added to a bar/link container of a parent BarManager.

When merging bars and link containers, the position to insert the BarItemLink is determined by the BarItemLinkBase.MergeOrder properties of this link and of the links within the target bar/link container.

Replace

Indicates that the child BarManager’s BarItemLink should replace the parent BarManager’s link that has the same BarItem.Content, but only if the parent link’s BarItemLinkBase.MergeType property is also set to Replace.

If such a link is not found in the parent BarManager’s bar/link container, the child BarManager’s link will simply be added to the bar/link container (similar to the Add setting).

MergeItems

This setting is applied to link containers (e.g. sub-menu).

It specifies that subitems of the child BarManager’s link container should be merged with subitems of a parent BarManager’s link container. Merging occurs for the parent BarManager’s link container, when the type and BarItem.Content match the source item, and only if its BarItemLinkBase.MergeType property is set to MergeItems. Otherwise, the child BarManager’s link container will simply be added to the parent BarManager’s bar (similar to the Add setting).

Remove

For a child BarManager’s BarItemLink, indicates that the link must not be added to the parent BarManager’s bar/link container during merging.

For a parent BarManager’s BarItemLink, indicates that the link must be removed from the bar/link container during merging.

Remarks

During merging, the bar item links of a child BarManager are added to a bar/link container of the parent BarManager. The MergeType property specifies how bar item links behave during merging. You can specify whether the bar item links of a child BarManager’s bar should be added to the parent BarManager’s bar (this is the default behavior), should replace the matching bar item links on the parent BarManager or should simply be removed. Refer to the BarItemMergeType type description for more information.

The MDI Bar Merging document covers information related to merging bars.

See Also