New to Telerik UI for WPFStart a free 30-day trial

Represents converter that converts a long value or an exponential string value representing the DateTime ticks to a DateTime object.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.dll

Syntax:

C#
public class TicksToDateTimeConverter : IValueConverter

Inheritance: objectTicksToDateTimeConverter

Implements: IValueConverter

Constructors

C#
public TicksToDateTimeConverter()

Methods

Converts a long value or an exponential string value representing the DateTime ticks to a DateTime object.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobjecttargetTypeTypeparameterobjectcultureCultureInfoReturns:

object

Converts back the DateTime object to a long value representing the DateTime ticks.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobjecttargetTypeTypeparameterobjectcultureCultureInfoReturns:

object