RibbonControlsLibrary - how to disable minimizing?
问题 How to disable minimizing of Ribbon control from RibbonControlsLibrary? 回答1: The following disabled both the double click on the tab header and 'Minimize the Ribbon' on the context menu for me: public class ExRibbon : Ribbon { public override void OnApplyTemplate() { base.OnApplyTemplate(); IsMinimizedProperty.OverrideMetadata(typeof(ExRibbon), new FrameworkPropertyMetadata(false, (o, e) => { }, (o, e) => false)); Type ownerType = typeof(ExRibbon); CommandManager.RegisterClassCommandBinding