Hi,
I've looked on the forum and found nothing about it so i'm posting a question in here. Is there a way to host a Ribbon in a userControl? I've got a mainform and having a bunch of usercontrols load and switched from/to and want to display the contextual RibbonTool merged into the main form ribbon.
As soon as i try to activate the Ribbon on a UserControl host and tells me that it require a form to be hosted, is there a way to bypass this issue? I simply need a way to design my ribbon tools for that userControl and merge it with the main ribbon at runtime.
Thanks a lot!
Hello pmorin,
Could you please review the sample attached to this post and see if it meets your requirements.
Please feel free to let me know if I misunderstood you or if you have any other questions.
How i can merge my ribbon in the Usercontrol by the ribbon in my main form ?
thx
Hello Lahmar,
Do you have an Mdi structure? As far as I can understand, you want to have a Ribbon in an UserControl, another Ribbon in a form, in which you also place the UserControl and to merge the two ribbons. Is that right?
No there is no mdi structure .
My main FORM contains an UltraDockManager..
I have a Ribbon in an UserControl, another Ribbon in a main form, in which i load my UserControl at the runtime i want to merge the two ribbons each time i load a new UserControl. ?
Thx
There is a screenShot; I hope that will help ..
Hi, I think I've tried this a slightly different way but with the MDIMergeable property disabled and doing the merge manually by setting the ActiveMDIChildManager property. It works fine merging the mdi child form ribbon into the mdi parent, and will merge the user control ribbon into the mdi child ribbon (I assume this as that code line doesn't throw an error) but when trying to refresh the mdiparent merge then it falls over somewhere in the infragistics code when it tries to merge in a button from the group. Boris could you take a look and tell me if there is a quick fix to this or if it's just not possible. Code attached.
Hello,
After some research, the "Ability to merge ribbons in non-mdi structure" has been determined to be a new product idea. I have sent your idea directly to our product management team.
Our product team chooses new ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products, so as trends appear in requested features, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your idea is chosen for development, you will be notified at that time.
Your reference number for this product idea is PI12080155.
If you would like to follow up on your request at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Thank you for your request.
YES PLEASE .
THX
Thank you for the screenshot and the code sample provided. After some investigation, I came to the conclusion that this is not a supported feature. You would have to move the tools and groups by yourself, manually.
If you wish, I could log a new product idea for you, which will contain the screenshot.
I attached the source code for my example.
thx.