WPF TextBox DataBind on EnterKey press

Posted by Jobi Joy on Stack Overflow See other posts from Stack Overflow or by Jobi Joy
Published on 2009-02-18T22:44:51Z Indexed on 2010/04/19 7:53 UTC
Read the original article Hit count: 672

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about wpf

Related posts about xaml