Table of Contents

Class CalendarDatePickerDateValidationErrorEventArgs

Namespace
Avalonia.Controls
Assembly
Avalonia.Controls.dll

Provides data for the DateValidationError event.

public class CalendarDatePickerDateValidationErrorEventArgs : EventArgs
Inheritance
CalendarDatePickerDateValidationErrorEventArgs
Inherited Members

Constructors

CalendarDatePickerDateValidationErrorEventArgs(Exception, string)

Initializes a new instance of the CalendarDatePickerDateValidationErrorEventArgs class.

public CalendarDatePickerDateValidationErrorEventArgs(Exception exception, string text)

Parameters

exception Exception

The initial exception from the DateValidationError event.

text string

The text that caused the DateValidationError event.

Properties

Exception

Gets the initial exception associated with the DateValidationError event.

public Exception Exception { get; }

Property Value

Exception

The exception associated with the validation failure.

Text

Gets the text that caused the DateValidationError event.

public string Text { get; }

Property Value

string

The text that caused the validation failure.

ThrowException

Gets or sets a value indicating whether Exception should be thrown.

public bool ThrowException { get; set; }

Property Value

bool

True if the exception should be thrown; otherwise, false.

Exceptions

ArgumentException

If set to true and Exception is null.