积极答复者
自定义ComboBoxItem如何在ComboBox中显示名称

问题
答案
-
参考我的这个帖子,http://social.msdn.microsoft.com/Forums/zh-CN/wpfzhchs/thread/f749c5cf-c012-4527-b434-717028fe5ad0
这里面的例子可以完成你的需求。
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 槑 -_- 槑 2011年10月13日 11:06
全部回复
-
你好!
设置ComboBox 的 SelectionIndex还是 SelectIndex 忘了怎么拼了. 这个是索引值,比如0,那么就是显示第一个
或者 直接给他 属性SelectionItem赋值,这个就要把你下面的整个对象赋值给他 比如 cmb.selectionItem = cmb.Items[2] 可能有的单词写的不对....
大概就这个意思
Hero
我发现我回答错方向了
- 已编辑 HeroHua0509 2011年10月13日 3:54
-
参考我的这个帖子,http://social.msdn.microsoft.com/Forums/zh-CN/wpfzhchs/thread/f749c5cf-c012-4527-b434-717028fe5ad0
这里面的例子可以完成你的需求。
Sheldon _Xiao[MSFT]
MSDN Community Support | Feedback to us
Get or Request Code Sample from Microsoft
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
- 已标记为答案 槑 -_- 槑 2011年10月13日 11:06