当我水平调整应用程序窗口大小时,为什么功能区 UI 消失了?
我想在我的新项目中采用功能区 UI,我知道它可能更多地关注魔兽世界因素,而不是功能区的真正用途,即取代杂乱的工具栏。然而,当我开始调整窗口大小时,检查了一些与自动缩放相关的功能。将窗口缩小到最小宽度后,Ribbon UI 就消失了,我什至认为这在已经采用 Ribbon UI 的商业软件中可能不存在。 Paint似乎也遇到了同样的问题,不知道Office 2007或2010是否也遇到同样的问题。
I wanted to adopt the Ribbon UI for my new project, I know it might be focusing more on the WoW factor than the true use of a Ribbon which is to replace the toolbar clutter. However when I started playing around with resizing the window, checking out some of the features related to automated scaling. After shrinking the window than a minimum width in size the Ribbon UI just disappeared, I even thought this might not exist in commercial software that have already adopted the Ribbon UI. Paint seems to be suffering from the same problem, don't know if Office 2007 or 2010 are also plagued by the same problem.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Paint 和其他内置 Windows 应用程序使用 scenic Ribbon API微软现在将其包含在操作系统中供所有开发人员使用。据推测,这与您在项目中使用的相同。 Microsoft Office 使用由 Office 团队内部发明的专有功能区控件。这解释了行为上的差异。
是的,当你把窗口设置得太小而无法出现时,丝带会完全消失,这并不让我感到震惊。养眼的糖果就是这样。考虑到当没有足够的空间来显示其大量选项时,功能区就不是很有用或功能性。您可以看到它试图尽可能地缩小自己,但您就是无法在 5 磅的袋子中装入 10 磅的东西。完全隐藏它似乎和其他任何事情一样优雅。
Paint and the other built-in Windows applications use the scenic Ribbon API that Microsoft is now including in the OS for all developers to use. Presumably, this is the same one you're using for your project. Microsoft Office uses proprietary ribbon controls, invented by the Office team in-house. That explains the difference in behavior.
And yes, it hardly shocks me that the ribbon disappears entirely when you make the window too small for it to appear. Eye candy has that way about it. Consider that the ribbon isn't very useful or functional when there isn't enough space to display its massive buffet of options. You can see that it tries to shrink itself down as much as possible, but you just can't fit 10 pounds in a 5 pound bag. Hiding it altogether seems like just as elegant an option as anything else.
功能区指南,第 76 页,第 1026 行对此进行了详细说明 - 1027:
因此,你关于为什么这样做的问题的答案是:它试图遵守规则。
您打算用覆盖整个窗户的丝带做什么?
This is spelled out in the Ribbon guidelines, page 76, lines 1026-1027:
Therefore the answer to your question about why it is doing that: it's trying to follow the rules.
What are you going to do with a ribbon that covers your entire window?