If you need to know when the panel is minimized (this happens when you double-click the tab title), you can connect to the IsMinimizedChanged event, but er .. it is missing. I hope this is DependencyProperty , so you can successfully switch to any DependencyProperty change as follows:
DependencyPropertyDescriptor.FromProperty(Ribbon.IsMinimizedProperty, typeof(Ribbon)) .AddValueChanged(ribbon, (o, args) => /* your code here */);
What I wanted to do (and therefore got here) is to prevent it from being minimized by double-clicking on the header, so I ended up using this code:
DependencyPropertyDescriptor.FromProperty(Ribbon.IsMinimizedProperty, typeof(Ribbon)) .AddValueChanged(ribbon, (o, args) => ribbon.IsMinimized = false);
Not so fantastic, but it does its job.
Guillermo ruffino
source share