ComponentOne DateTimeEditors for WPF
C1.WPF.DateTimeEditors Namespace / C1DatePicker Class / DateValidationError Event

In This Topic
    DateValidationError Event (C1DatePicker)
    In This Topic
    Occurs when text entered into the C1DatePicker cannot be parsed or the Date is not valid to be selected.
    Syntax
    'Declaration
     
    
    Public Event DateValidationError As EventHandler(Of DatePickerDateValidationErrorEventArgs)
    public event EventHandler<DatePickerDateValidationErrorEventArgs> DateValidationError
    Event Data

    The event handler receives an argument of type 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