简体   繁体   中英

Making a combobox with nested items wpf

I want to create a combobox in wpf that has nested items so that each item expands horizontally and I can peek sub items. after selecting a sub item, the combobox text and value should be equal to that sub item . I found this on internet . It looks pretty fine but it doesn't behave how I want . it's just a menu looking like a combo box.

There is no such thing like SubItems available in ComboBox . You will have to define your own such control. You can also search & get third party control. I would recommend you using TreeView .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM