BindingGroup::NotifyOnValidationError Property
.NET Framework (current version)
Gets or sets whether the Validation::Error event occurs when the state of a ValidationRule changes.
Assembly: PresentationFramework (in PresentationFramework.dll)
Property Value
Type: System::Booleantrue if the Validation::Error event occurs when the state of a ValidationRule changes; otherwise, false. The default is false.
The Validation::Error attached event occurs on the element that has the BindingGroup.
The following example creates a BindingGroup and sets NotifyOnValidationError to true so that the application can handle the Validation::Error event when a ValidationRule fails.
<StackPanel.BindingGroup> <BindingGroup NotifyOnValidationError="True"> <BindingGroup.ValidationRules> <src:ValidateDateAndPrice ValidationStep="ConvertedProposedValue" /> </BindingGroup.ValidationRules> </BindingGroup> </StackPanel.BindingGroup>
The following example handles the Validation::Error event.
.NET Framework
Available since 3.0
Available since 3.0
Show: