如何在Windows Mobile开发中将Listview放在ComboBox的下拉列表中 [英] How to put a Listview in the dropdownlist of the ComboBox in the Windows Mobile development
本文介绍了如何在Windows Mobile开发中将Listview放在ComboBox的下拉列表中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Windows Mobile开发中的ComboBox的下拉列表中放置Listview.
ComboBox的下拉列表的大小是固定的,但有时无法在ComboBox中显示整个项目文本,因此我想更改下拉列表的大小.
How to put a Listview in the dropdownlist of the ComboBox in the Windows Mobile development.
The size of the dropdownlist of a ComboBox is fixed ,but sometimes the whole item text can not be shown in the ComboBox, so I want to change the size of the dropdownlist.
推荐答案
这不是控件ComboBox
所能做的.组合的列表部分是简单列表(等效于ListBox
,而不是ListView
);里面有列.
您只能通过Combobox.Items.Add
将项目添加到此列表;每个项目都将表示为单个字符串,该字符串由您的列表元素类型的object.ToString
返回的值定义.
如果这不是您想要的,则始终可以实现用户控制并在其中使用ListView
.
—SA
This is not what the controlComboBox
can do. The list part of the combo is the simple list (equivalent toListBox
, notListView
); there are columns in it.
You can only add items to this list viaCombobox.Items.Add
; each item will be represented as a single string defined by whatobject.ToString
of you list element type returns.
If this is not what you want, you can always implement User Control and use aListView
inside.
—SA
我认为您想要的是一个多列组合框.搜索 windows mobile多列组合框,您应该会看到一些匹配项.
一个快速的谷歌显示,要找到专门针对移动设备的设备并不容易.您可能必须要使用台式机版本,然后进行调整/更改才能与您的移动开发项目一起使用.
I reckon what you want is a multi-column combobox. Search for windows mobile multicolumn combobox and you should see a few hits.
A quick google reveals that it''s not easy to find mobile specific ones. You''d probably have to take a desktop version and then adjust/change it to work with your mobile development project.
这篇关于如何在Windows Mobile开发中将Listview放在ComboBox的下拉列表中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文