是否可以获得触发事件的绑定:Validation.Error
?
例如:我在文本框中注册了此活动:
<TextBox Validation.Error="My_Error" Text="{Binding MyProp,UpdateSourceTrigger=PropertyChanged,NotifyOnValidationError=True}" />
该事件在出现验证错误并到达以下函数时运行:
private void My_Error(object sender, ValidationErrorEventArgs e)
{
//Here I want to get the property for which fired the event (MyProp). Is it possible?
}