Change at runtime?

Dec 14, 2010 at 10:33 AM

Does the Windows Ribbon control support change at runtime? I need my ribbons to be customizable like an Office application, but I can access the collections.

Coordinator
Dec 14, 2010 at 10:59 AM

The Ribbon for WinForms project is a managed wrapper around Microsoft Windows Ribbon Framework (first introduced in Windows 7 and now available also in Vista).

As such, it has the same limitation as the wrapee. Specifically, dynamic changes at run-time are quite limited.

What you can do is:

1. Use application modes, which allows you to set several modes in the application, where each mode has a different set of tabs/groups/buttons.
Note that you can change the UI at runtime but only to predefined UI.
Check this post for more information on application modes.

2. Use contextual tabs, which are additonal tabs that appear when you set a "context".
Again, allows changing at runtime, but should be predefined.
Check this post for more information on contextual tabs.

The only feature where you can add UI is using gallery-based controls.

Arik.