I am using a StackPanel to host several TextBoxes that have validation rules attached.
I also have a StackPanel.BindingGroup validation as follows:
<BindingGroup Name="ValidateAllFields" NotifyOnValidationError="True">
I have a BindingGroup validation rule called: ValidateAll from which I would like to display the error message in a TextBlock on my StatusBar.
I only want to display the BindingGroup:ValidateAll message as the TextBox validation messages are displayed below the TextBoxes.
I know I can do this in code by handling the ItemError event, where I can get the rule associated with an error message through the ValidationError.RuleInError property.
I would like to be able to accomplish this in xaml, possibly by setting up a Style/Trigger/Setter combination to my StatusBar TextBlock.
Any help would be much appreciated.