如何将项目放入Ribbon ComboBox [英] How to get Items into a Ribbon ComboBox
本文介绍了如何将项目放入Ribbon ComboBox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,
如何将物品放入Ribbon Combobox中。为了清除我尝试
Combobox.DropDown.Items.Clear();
但是当我尝试使用
Combobox.DropDownItems.Add(TEST);
显示错误。
我错了什么?
提前付款
Ruediger
Hello,
how i get Items into a Ribbon Combobox. For clearing I try
Combobox.DropDown.Items.Clear();
but when I try to use
Combobox.DropDownItems.Add("TEST");
it is shown as wrong.
What i make wrong?
Thanks in advance
Ruediger
推荐答案
检查:
在运行时向RibbonDropDown添加项目 [ ^ ]
请先阅读我对该问题的评论。
看看这里:
演练:在运行时更新功能区上的控件 [ ^ ]
如您所见,只有一种方法可以创建新的组合框: RibbonFactory.CreateRibbonDropDownItem方法 [ ^ ]
我建议你也读一读:在运行时将项目添加到RibbonDropDown [ ^ ] - 2.和3.从顶部回答。
Please, read my comment to the question first.
Have a look here:
Walkthrough: Updating the Controls on a Ribbon at Run Time[^]
As you can see, there is only one method to create new item of combobox: RibbonFactory.CreateRibbonDropDownItem Method [^]
I'd suggest to read it too: Adding items to RibbonDropDown at runtime[^] - 2. and 3. answer from top.
这篇关于如何将项目放入Ribbon ComboBox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文