How to Merge Ribbon from Page with Ribbon from Main window?

Hi,

I have a WPF application with a Ribbon control.

I am loading and unloading functionality on WPF Pages.

Is it possible to add a (child) ribbon on a page, and on loading the page the child ribbon will be merged into the main ribbon?

The example I found is for a MDI application, but my application is a WPF application with pages.


1 Reply

SS Sekar Sivalingam Syncfusion Team April 8, 2025 06:47 AM UTC

Hi Johan Visser,

Ribbon merging from a Page to a RibbonWindow isn't supported because a WPF Page can only have a Window or Frame as its parent. In our case, the DocumentContainer tries to host the Page, causing the following error:

System.InvalidOperationException: 'Page can have only Window or Frame as parent.'

We recommend you use a UserControl instead of a Page, as shown in our documentation:

Documentation: https://help.syncfusion.com/wpf/ribbon/ribbonmerge#creating-mdi-window-and-enabling-menu-merging

Let us know if you need any further assistance.


Regards,
Sekar Sivalingam


Loader.
Up arrow icon