Search code examples
wpfautocompletebox

How to Filter more than one field using WPF AutoCompleteBox


i am trying to customize the suggestions on the AutoCompleteBox in the WPF Tool kit. Right now i have a last name field which when the user enters characters a query runs that retrieves the top 10 records based on that last name. i would also like to filter by first name, i tried splitting out the comma and searching by the last name and the characters entered in the first name.

however, as soon as a space or comma is entered into the autocompletebox, the suggest functionality stops working, which I believe is because the ValueMemberPath property is set to be last name. Is there a work around for this, or a way to modify the ValueMemberPath to handle multiple values? Thanks!


Solution

  • If you wont get any satisfied answer there's a nice control that I'm using from codeproject that supports searching by keywords with easy API.

    WPFAutoCompleteTextbox