I have text box and i want to validate is valid email in textbox on button “save” click.
But standard validation have strange behaviour. When i print new email it always with error and this is wery annoing. I want to show error only after button click and then text box must become valid if got focus. Is there are standard way to do this in THE MODEL-VIEW-VIEWMODEL.
The default behavior for changing the bound value in a
TextBoxis viaLostFocus. You would need to change theUpdateSourceTriggerto be explicit.Then in your code behind you now have to explicitly call
UpdateSourcevia yourButtonclick handler.