Hi !
I need to write a custom WPF control that should look like a ComboBox with extended items search feature. For this purpose I'd like to have a TextBox and a Popup with a search TextBox and a ListBox.
My first question is if it's a good decision to inherit from Selector, or rather ComboBox ?
The second question is where can I find a good example of this.. the only solution seems to be disassembling the Microsoft's library and look approximately what they are doing.
Other questions:
- How should I handle events? e.g.
Buttonclick in aTemplate. Should I look it up in theTemplateand register the events in that way, or can I register it directly in XAML likeClick="PART_Button1CLick"?
Thank you guys !