I have a design question开发者_如何学运维:
If you had to make a WPF Combobox with search support, (= combobox that shows a popup with some Buttons, Search TextBox, List.. etc the selected item feed to the default's ComboBox TextBox.) What would you do?
- Write a custom control (diretly inheriting from
System.Windows.Control
) - Write a custom control inheritnig from
Selector
/ComboBox
- Make a
UserControl
- Use a default ComboBox with a 'special Template' (
CotnrolTemplate
/Style
?) extended to search functionality - Use a default ComboBox with style and attached
EventHandlers
..
Thank you guys !
I have done that, and the method i used was option 2 - i did a template control inheriting from a third party combo, and replaced the popup contents with my own template.
精彩评论