How to implement WPF feeds Contextual tabs MVVM path

I am developing an MVVM application using the WPF Ribbon control from the Office UI licensing site as the main menu. And I cannot bind or somehow enter contextual tabs into my ribbon control. I don’t want to store all the layouts of contextual tabs and command bindings in my main view, I want to use these tabs depending on the selected view and store these tabs, possibly in the same form or in a special view only with tabs of this type. Is it possible?

+4
source share
1 answer

You can only write Style or even a ControlTemplate for various RibbonTab in your App.config, avoiding the need to put this markup in MainWindow . Then simply add all the RibbonTab to the Ribbon in MainWindow.xaml and set the Visibility properties of each, binding to the main view model. You can use the bool properties load in the main view model with a simple bool to Visibility converter.

0
source

All Articles