WPF ListBox ErrorTemplate
问题 In my WPF application I've a ListBox binding to a collection of view models. Those view models support validation by implement INotifyDataErrorInfo. I’m trying to display an error template for items with validation errors in my ListBox. I’m able to get the ListBox to display the default error template by setting NotifyOnValidationError=True on the ItemSource binding of the ListBox. Which looks like this: Code of my ListBox: <ListBox x:Name="ListBoxEvents" ItemsSource="{Binding Events,