Microsoft Ribbon for WPF:控制快速访问工具栏中的项目计数?
我正在快速了解新的 适用于 WPF 的 Microsoft 功能区。我正在创建带有快速访问工具栏的功能区。我在 QAT 中有六个项目 - 我想显示其中四个并将另外两个放在溢出按钮中。此时,所有六个按钮均显示,没有溢出按钮。如何设置可见的快速访问按钮的数量?感谢您的帮助。
I am getting up to speed on the new Microsoft Ribbon for WPF. I am creating a Ribbon with a Quick Access Toolbar. I have six items in the QAT--I'd like to show four of them and put the other two in the overflow button. At this point, all six buttons are showing, with no overflow button. How do I set the number of visible QuickAccess buttons? Thanks for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就目前的开发而言,我认为 IsOverflowItem 是只读的。因此您无法指定该项目是否溢出。这完全取决于按钮有多少空间。如果将窗口大小调整得小一点,您最终可能会看到按钮自动填充在菜单中,因为菜单将被动态创建。
因此,基于当前的实现,您只能指定
确保当按钮没有空间时 QuickAccessToolbar 溢出。
我写了一篇关于功能区控制的文章,可能会对您有所帮助。看看
http://www.abhisheksur.com/ 2010/08/introducing-ribbon-ui-control-for-wpf.html
谢谢。
As per current development is concerned, I think IsOverflowItem is Readonly. So you dont have the ability to specify for the item to be Overflown or not. It depends totally on how much space you have for the buttons. If you resize the window a bit smaller, you might eventually see the buttons being automatically populated in the menu as the menu will be dynamically created.
So based on the current implementation, you can only specify
to make sure that the QuickAccessToolbar overflows when there is no room for the button.
I wrote an article on Ribbon Control which might help you a bit. Take a look
http://www.abhisheksur.com/2010/08/introducing-ribbon-ui-control-for-wpf.html
Thanks.