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

RibbonPageCategoryBase.MergeType Property

Gets or sets the way ribbon categories merge. This is a dependency property.

Namespace: DevExpress.Xpf.Ribbon

Assembly: DevExpress.Xpf.Ribbon.v20.2.dll

NuGet Packages: DevExpress.WindowsDesktop.Wpf.Ribbon, DevExpress.Wpf.Navigation

Declaration

public RibbonMergeType MergeType { get; set; }

Property Value

Type Description
RibbonMergeType

A RibbonMergeType value indicating how ribbon categories merge.

Available values:

Name Description
Add

Adds a child ribbon element to a parent ribbon even if an element with the same caption already exists in the parent ribbon.

Replace

Replaces a parent ribbon element with the current child ribbon element if they have the same caption.

If a parent element with the same caption is not found, the current child ribbon element is added to the parent ribbon.

MergeItems

The default merging mechanism. Sub-items of the current child ribbon element are merged into the parent ribbon element that has the same caption. If no parent element with the same caption exists, the current child ribbon element is appended according to its MergeOrder.

Remove

Prevents the current child ribbon element from being merged with a parent ribbon object.

If the MergeType for a parent element is set to Remove, this element is hidden after the merge is complete.

Remarks

You can adjust the way categories of two ribbon controls merge using the MergeType property. Refer to the RibbonMergeType link for information on parameters.

See the MDI Ribbon Merging article for detailed information about the merging mechanism.

See Also