0
是否有可能獲取激發事件的綁定:Validation.Error
?獲取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?
}