How do I get TextChanged events from an editable ComboBox

Viewed 49519

I have an editable ComboBox:

<ComboBox IsEditable="true"/>

What is the event that is raised when the edited value is changed? I have tried TextInput but that is not the solution.

5 Answers

PreviewTextInput event gets triggered for every keyboard input in the ComboBox.

Add --->> TextBoxBase.TextChanged="ComboBox_TextChanged"

I would like to thank the answer from IanR and Girish Reddyvari as it got me thinking.

I'm using Caliburn Micro and I'm trying to get the input of the Editable ComboBox while they are typing. Caliburn Micro didn't easily pick up the event

 TextBoxBase.TextChanged

as my background in xaml and interactivity isn't good enough! But it did pick up

  KeyUp

My code using Caliburn Micro is different but the following code should also work

<ComboBox IsEditable="True" KeyUp="ComboBox_TextChanged" />
Related