ComponentOne DateTimeEditors for WPF and Silverlight
DateValidationError Event (C1DateTimePicker)

C1.WPF.DateTimeEditors Namespace > C1DateTimePicker Class : DateValidationError Event
Occurs when text entered into the DatePicker cannot be parsed or the Date is not valid to be selected.
Syntax
'Declaration
 
Public Event DateValidationError As System.EventHandler(Of DatePickerDateValidationErrorEventArgs)
public event System.EventHandler<DatePickerDateValidationErrorEventArgs> DateValidationError
Event Data

The event handler receives an argument of type System.Windows.Controls.DatePickerDateValidationErrorEventArgs containing data related to this event. The following DatePickerDateValidationErrorEventArgs properties provide information specific to this event.

PropertyDescription
Gets the initial exception associated with the System.Windows.Controls.DatePicker.DateValidationError event.  
Gets or sets the text that caused the System.Windows.Controls.DatePicker.DateValidationError event.  
Gets or sets a value that indicates whether System.Windows.Controls.DatePickerDateValidationErrorEventArgs.Exception should be thrown.  
See Also