Class
TicksToDateTimeConverter

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:

cs-api-definition
public class TicksToDateTimeConverter : IValueConverter

Inheritance: objectTicksToDateTimeConverter

Implements: IValueConverter

Constructors

TicksToDateTimeConverter()

Declaration

cs-api-definition
public TicksToDateTimeConverter()

Methods

Convert(object, Type, object, CultureInfo)

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

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object

ConvertBack(object, Type, object, CultureInfo)

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

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

targetType

Type

parameter

object

culture

CultureInfo

Returns

object