RibbonControlsLibrary - 如何禁用最小化?
如何从 RibbonControlsLibrary 禁用功能区控件的最小化?
How to disable minimizing of Ribbon control from RibbonControlsLibrary?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
以下内容禁用了双击选项卡标题和上下文菜单上的“最小化功能区”:
The following disabled both the double click on the tab header and 'Minimize the Ribbon' on the context menu for me:
最小化控件且无法禁用的唯一方法是双击选项卡标题,实际上三次单击或两次以上单击也会最小化控件,这就是我的第一个想法失败的原因(我试图取消双击事件,但控件在第三次单击时最小化)。
所以这个解决方案不太漂亮,但它工作正常,当在
TabHeaderItemsControl
(这是保存选项卡的控件)上检测到两次以上单击时,控件将最大化The only way that minimices the control and can't be disabled is a double click on a Tab header, in fact a triple click or more than 2 clicks also minimices the control, this is why my first idea failed (I tryed to cancel the double click event, but the control minimized on the third click).
SO this solution isn't too prety but it works fine, when more than two clicks are detected on the
TabHeaderItemsControl
(this is the control that holds the tabs) then the control is maximized