How to Filter more than one field using WPF AutoCompleteBox

Posted by Drew on Stack Overflow See other posts from Stack Overflow or by Drew
Published on 2010-12-29T15:08:19Z Indexed on 2010/12/29 15:54 UTC
Read the original article Hit count: 403

Filed under:
|

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!

© Stack Overflow or respective owner

Related posts about wpf

Related posts about autocompletebox