RibbonPage.MergeType Property
Gets or sets a way ribbon pages merge. This is a dependency property.
Namespace: DevExpress.Xpf.Ribbon
Assembly: DevExpress.Xpf.Ribbon.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
RibbonMergeType | A RibbonMergeType value indicating how ribbon pages 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 pages 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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MergeType property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.