Validation.error event in event command
问题 I have a text box: <TextBox Height="20" Width="150" Text="{Binding MyProperty,NotifyOnValidationError=True,ValidatesOnDataErrors=True}" > <i:Interaction.Triggers> <i:EventTrigger EventName="Validation.Error"> <mvvm:EventToCommand Command="{Binding MyCmd}" PassEventArgsToCommand="True" ></mvvm:EventToCommand> </i:EventTrigger> </i:Interaction.Triggers> </TextBox> My ViewModel looks like this: public class MyViewModel : ValidationViewModelBase, INotifyPropertyChanged { private int myVar; [Range