private void OnModelPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (string.IsNullOrWhiteSpace(e.PropertyName))
{
return;
}
var dataWarningInfo = _model as IDataWarningInfo;
if (dataWarningInfo != null)
{
HandleFieldWarnings(e.PropertyName, new[] { dataWarningInfo[e.PropertyName] });
}
var dataErrorInfo = _model as IDataErrorInfo;
if (dataErrorInfo != null)
{
HandleFieldErrors(e.PropertyName, new [] { dataErrorInfo[e.PropertyName] });
}
}