功能区组合框 [英] RibbonComboBox

查看:61
本文介绍了功能区组合框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个正常的WPF组合框,可以正常工作,并且有相当长的项目列表.我一直在尝试使用RibbonComboBox进入功能区.我注意到的是,RibbonCOmboBox似乎没有在虚拟化.谁能给我一些 指导?是否有必要为这些物品创建画廊?在此问题上,此处的帖子和对代码的了解似乎并不明确.谢谢.

I have a regular WPF combobox working as expected with a fairly long list of items. I have been trying to move in into my ribbon, using RibbonComboBox. What I notice is that the RibbonCOmboBox does not appear to be virtualizing. Can anyone give me some guidance? Is it necessary to create a gallery for the items? The posts here and a look at the code do not seem to be clear on this issue. Thanks.

推荐答案

您好,HS Gurvey,

Hi HS Gurvey,

#1 RibbonComboBox通过VirtualizingStackPanel附加属性VirtualizingStackPanel.IsVirtualizing和VirtualizingStackPanel.VirtualizationMode支持虚拟化.根据您在什么情况下考虑"RibbonCOmboBox" 似乎没有在虚拟化",您可以填写吗?如果可能的话,请在此处发布一些相关的代码段.

#1 RibbonComboBox supports Virtualization via VirtualizingStackPanel attached properties VirtualizingStackPanel.IsVirtualizing and VirtualizingStackPanel.VirtualizationMode. Based on what circumstance you consider "the RibbonCOmboBox does not appear to be virtualizing", could you fill in on that? If possible please post some related code snippets here.

#2并非必须为这些项目创建图库,您可以使用任何其他可能的控件来代替.但是,图库是简单但功能强大的UI概念.它们基本上是项目的可滚动列表,其背后的思想是每个项目 会以视觉方式显示单击它的结果,而不是指向其目的的静态图标.

#2 It is not a must to create gallery for the Items, you could use any other possible controls instead. However Galleries are simple but powerful UI concept. They are basically a scrollable list of items and the idea behind them is that each item shows the result of clicking it visually, rather than a static icon which points its purpose.

任何其他问题,请随时告诉我.

Any further concerns please feel free to let me know.


这篇关于功能区组合框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆