.net - WPF Editable ComboBox Text Search Behavior -


i have combobox binded entity observablecollection on itemssource. this:

key    desc1   desc2 c0001  mydesc  mydesc d0001  mydesc  mydesc a0001  mydesc  mydesc 

the combobox defined:

<combobox    iseditable=true    displaymemberpath="key"    selectedvaluepath="key"    itemssource="{binding path=mylist, mode=oneway}" /> 

now have problem...

if type character on empty editable textbox of combobox, first element "startswith" typed character matched. so, if type "c", selecteditem element "c0001"...and avoid this!

i different search logic find selecteditem based on full text typed. in way:

text typed        selecteditem c                 null c0                null c00               null c000              null c0001             [c0001, mydesc, mydesc] ok! 

is possible? how can do?

this behaviour has been combos in windows. if want this, you're better off search field , pickable list of results.

alternatively, textbox support different autocomplete suggestion modes, want dropdown i'd imagine. (no, doesn't).

this post makes stab @ coupling 2 up, it's pretty neat.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -