Hi Olivier,
Thank you for the message. Unless I'm mistaken this issue can be resolved by setting the MdiMergeStyle property to Always. Please review the MergeRibbon Issue thread about a similar problem for more information. Please let me know if you need any additional assistance in this regard.
Thanks,
Svetlana
Hi Svetlana,
I attached you an example project. If I use 'Open RibbonChild' the ribbon page is merged, but if I use 'Open XtraChild' the ribbon pages of the XtraForm (Child Form) is not merged with the ribbon control on its parent form.
Thanks,
Olivier
Hi Olivier,
Thank you for your feedback. I've created a sample for you based on your requirements, and it works as expected here. Please review the attached project, and let me know if you need any further assistance in this regard.
Thanks,
Svetlana
Hi Olivier,
This issue is caused by the fact that in the XtraForm the RibbonControl belongs to the LayoutControl. Before merging occurs, the RibbonControl's FindMDIRibbon method is called, which searches the RibbonControl through the MDI child form's controls (via its Controls property). So, this method finds only the LayoutControl, and returns null.
You can resolve this issue by using the following approaches:
1. Create your own RibbonControl and override the FindMDIRibbon method.
OR
2. Add the RibbonControl to the XtraForm.Controls collection.
Please try this approach, and let me know if this helps you.
Thanks,
Svetlana
Is your intention to post an answer to your own question?
- If so, then proceed.
- If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
- If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.
Facebook
Twitter
Google+