denny
denny

Reputation: 345

Different update trigger for binding and validation

I need to bind with UpdateSourceTrigger=LostFocus, but in the same time i need to enforce validation rules on every value change. Any suggestion how to do it?

Upvotes: 1

Views: 72

Answers (1)

Bizhan
Bizhan

Reputation: 17095

Use a different Dependency Property for the real data, and add LostFocus event to the control to update the real data.

Upvotes: 1

Related Questions