I have a ComboBox in WPF that I worked a lot with (it has its own template and custom element template). I have everything until the moment when it works pretty much the way I want it, except that when I enter the ComboBox it performs filtering for me, but only filters that assume that I print start the element name in a ComboBox.
For example, if I have an item in ComboBox called “Windows Media Player”, it will only find it if I start typing “Windows Media ...” and it won’t find it if I start typing “Media Play” “...” Is there a way around this? Can I set the property somewhere so that it can look for it in the entire string, and not just use StartsWith ()?
If not, what would be the best way to do this yourself? Is there a way to take the original control and basically just change the call from StartsWith () to the call to Contains (), or will I have to go much lower level?
robintw Feb 06 '09 at 22:34 2009-02-06 22:34
source share