CalendarDatePickerDateValidationErrorEventArgs Class
Definition
Provides data for the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
public class CalendarDatePickerDateValidationErrorEventArgs
Constructors
| Name | Description |
|---|---|
| CalendarDatePickerDateValidationErrorEventArgs | Initializes a new instance of the Avalonia.Controls.CalendarDatePickerDateValidationErrorEventArgs class. |
CalendarDatePickerDateValidationErrorEventArgs Constructor
Initializes a new instance of the Avalonia.Controls.CalendarDatePickerDateValidationErrorEventArgs class.
public CalendarDatePickerDateValidationErrorEventArgs(Exception exception, string text)
Parameters
exception Exception
The initial exception from the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
text string
The text that caused the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
Properties
| Name | Description |
|---|---|
| Exception | Gets the initial exception associated with the Avalonia.Controls.CalendarDatePicker.DateValidationError event. |
| Text | Gets the text that caused the Avalonia.Controls.CalendarDatePicker.DateValidationError event. |
| ThrowException | Gets or sets a value indicating whether Avalonia.Controls.CalendarDatePickerDateValidationErrorEventArgs.Exception should be thrown. |
Exception Property
Gets the initial exception associated with the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
public Exception Exception { get; set; }
Value
The exception associated with the validation failure.
Text Property
Gets the text that caused the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
public string Text { get; set; }
Value
The text that caused the validation failure.
ThrowException Property
Gets or sets a value indicating whether Avalonia.Controls.CalendarDatePickerDateValidationErrorEventArgs.Exception should be thrown.
public bool ThrowException { get; set; }
Value
True if the exception should be thrown; otherwise, false.