How to create Ribbon tabs dynamically?
Posted
by
Lari13
on Stack Overflow
See other posts from Stack Overflow
or by Lari13
Published on 2010-12-29T11:51:01Z
Indexed on
2010/12/29
11:54 UTC
Read the original article
Hit count: 233
I want to start developmet of new application using PrismV4, MEF, Ribbon. But now, I have a problem. How to create tabs for Ribbon dynamically? Each module in application could create own tab in Ribbon. And each tab may have many groups.
How can it be done? Where do I need to place each group's definitions (what controls to use (buttons, textboxes, comboboxes, etc) and command bindings and how?
Do I need to write XAML somewhere in Module, or all it can be done by code? And last question, how to notify Ribbon (in Shell) to add these tabs to Ribbon? Shall I use EventAggregator to communicate from Module to Shell? Or?
Thanks for any advices and Happy New Year :)
© Stack Overflow or respective owner