<
TextBox Name="IssuerName1" Validation.HasError="{Binding Path=PropertyViewModel.HasErrorIssuerName, Mode=TwoWay}" Text="{Binding Path=IssuerName, Mode=TwoWay, Converter={StaticResource Validator}, ConverterParameter=1:AttributeIssuer_IssuerName, NotifyOnValidationError=True, ValidatesOnExceptions=True}" MaxLength="255" HorizontalAlignment="Left" Height="25" Margin="0,20,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="248"/>
在Converter里触发异常即可