Given we have content control
and its content bound to viewmodel
and viewmodel implements INotifyDataErrorInfo
and property Name can't be set to "X"
when viewmodel.Name set to "X"
then input bound to Name get red border
but contentcontrol get red order too!
Solution:
Set ValidatesOnNotifyDataErrors to False in ContentControl Content binding
No comments:
Post a Comment