WPF EDitable ComboBox

Posted by Amittai Shapira on Stack Overflow See other posts from Stack Overflow or by Amittai Shapira
Published on 2009-02-24T15:41:14Z Indexed on 2010/06/13 16:02 UTC
Read the original article Hit count: 207

Filed under:

Hi! I want to create editable combo box with the following properties: 1. Bind the text property to my data model. 2. The data model may override the changes in the GUI, even in Selection changed. E.g. I can choose from 1, 2, 3 I choose 2, but some component down under changes it to 3. 3. Update the data model on the following events: 1. Selection Changed 2. Lose focus 3. Enter pressed (should behave the same as lost focus).

I've been able to create such control, but it's pretty ugly (using many hacks) and I hoped there's a simpler way…

Thanks in advance

© Stack Overflow or respective owner

Related posts about wpf-controls