添加子组件到组合框 [英] add subitems to combobox

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

问题描述

先生,



我在组合框,电影和新闻中有两个类别。



怎么做当我选择电影成为movie1和movie2子类别时,我添加了子类别。

Sir,

I have two categories in combobox, Movies and News.

How do I add sub-categories when I select movies to become movie1 and movie2 sub-categories.

推荐答案

我认为你真正想要的是 TreeView ComboBox 不是显示可选子项的适当控件。
I think what you really want is a TreeView. A ComboBox is not the appropriate control to display selectable sub-items.


一个非优雅的启动解决方案,就是创建一个内部组合框,作为一个组合框的组合。您可以设置它们的样式以改善其外观,仍然是一个树形视图,如已经说过的那样,必须具备wpf / xaml开发技能
A non-elegant solution for starting, is to create an inner combobox, as a comboitem of an outter combobox. You can style them to improve the look of it, still, a treeview as was already said is the way to go and a must have skill with wpf/xaml development


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

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