New to Telerik UI for WPF? Start a free 30-day trial

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:

C#
public class ParseDateTimeEventArgs : RadRoutedEventArgs

Inheritance: objectRadRoutedEventArgsParseDateTimeEventArgs

Constructors

Initializes a new instance of the ParseDateTimeEventArgs class.

C#
public ParseDateTimeEventArgs(RoutedEvent routedEvent, string text, DateTime previousValue, DateTime? result, bool isSuccessful)
Parameters:routedEventRoutedEventtextstringpreviousValueDateTimeresultDateTime?isSuccessfulbool

Properties

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

C#
public bool IsParsingSuccessful { get; set; }

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

Gets the value before it's being parsed.

C#
public DateTime PreviousValue { get; }

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

C#
public DateTime? Result { get; set; }
Property Value:

The datetime object currently parsed. The default is null.

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

Gets the string that is being parsed.

C#
public string TextToParse { get; }