I have a ListBox associated with an ObservableCollection of type T - each ListBoxItem is a flag with IsChecked attached to the bool property in T. I want to check the checked items in the ListBox to mark at least one flag - if none of the checkboxes are checked, I want show a red frame (standard validation notification) around the ListBox.
How should I do it? Can I use ValidatesOnDataErrors?
Paley source
share