Tuesday, December 16, 2014

WPF ContentControl/ContentPresender and INotifyDataErrorInfo


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!

Set ValidatesOnNotifyDataErrors to False in ContentControl Content binding

No comments:

Post a Comment