WPF TextBox DataBind on EnterKey press
- by Jobi Joy
The default DataBinding on TextBox is TwoWay and it commits the text to the Property only when TextBox lost its focus.
Is there any easy XAML way exists to make the DataBinding Happens when I press Enter Key on the TextBox?. I know it is pretty easy to do in the code behind, but imagine if this textBox is inside some complex DataTemplate.