I use the Ribbon for WPF (2010 – Microsoft.Windows.Controls.Ribbon).
When Ribbon.IsMinimized is set to true the ribbon is minimized.
The normal behavior is that when I click on a minimized tab, it will open temporarily. But is there any way to disable that, to prevent it from expanding?
Please see the code below. Am not entirely clear on what you want, but I have covered 2 possible behavioural cases which hopefully meets your needs.
If the Ribbon is set to minimized and you click on a Ribbon tab, it will turn off the minimized flag, and turn the Ribbon into a non-minimized one from that point on. You can double-click the tab, or select the minimize Ribbon from the context menu to minimize again.
If you click on a Ribbon tab when the Ribbon is minimized it will keep the Ribbon in the minimized state.
I have provided 2 implementations of the code, one that just hooks a regular Ribbon, and another that creates a derived Ribbon.
Code behind of Window: