Class
ParseDateTimeEventArgs

Contains state information and event data associated with a parse date or time routed event.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.Input.dll

Syntax:

cs-api-definition
public class ParseDateTimeEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsParseDateTimeEventArgs

Constructors

ParseDateTimeEventArgs(RoutedEvent, string, DateTime, DateTime?, bool)

Initializes a new instance of the ParseDateTimeEventArgs class.

Declaration

cs-api-definition
public ParseDateTimeEventArgs(RoutedEvent routedEvent, string text, DateTime previousValue, DateTime? result, bool isSuccessful)

Parameters

routedEvent

RoutedEvent

text

string

previousValue

DateTime

result

DateTime?

isSuccessful

bool

Properties

IsParsingSuccessful

Gets or sets a value that indicates whether the parsing is successful or not.

Declaration

cs-api-definition
public bool IsParsingSuccessful { get; set; }

Property Value

bool

Remarks

Use this property to change the result of the parsing, if you want to have custom logic for parsing.

PreviousValue

Gets the value before it's being parsed.

Declaration

cs-api-definition
public DateTime PreviousValue { get; }

Property Value

DateTime

Result

Gets or sets the result of the parsing. Default value is null.

Declaration

cs-api-definition
public DateTime? Result { get; set; }

Property Value

DateTime?

The datetime object currently parsed. The default is null.

Remarks

Use this property to change the result of the parsing, if you want to have custom logic for parsing.

TextToParse

Gets the string that is being parsed.

Declaration

cs-api-definition
public string TextToParse { get; }

Property Value

string