Skip to main content

CalendarDatePickerDateValidationErrorEventArgs Class

Definition​

Assembly:Avalonia.Controls
Package:Avalonia
public class CalendarDatePickerDateValidationErrorEventArgs

Inheritance: EventArgs -> CalendarDatePickerDateValidationErrorEventArgs

Constructors​

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​

NameDescription
ExceptionGets the initial exception associated with the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
TextGets the text that caused the Avalonia.Controls.CalendarDatePicker.DateValidationError event.
ThrowExceptionGets 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.

Exceptions​