Table of Contents

Class TimeConverter

Namespace
Tudormobile.Strava.UI.Converters
Assembly
Tudormobile.Strava.UI.dll

Converts time-related values into human-readable string representations.

public class TimeConverter : IValueConverter
Inheritance
TimeConverter
Implements
Inherited Members

Methods

Convert(object?, Type, object?, CultureInfo?)

Converts a time-related value into a formatted string representation.

public object Convert(object? value, Type targetType, object? parameter, CultureInfo? culture = null)

Parameters

value object

The value to convert. Can be a SummaryActivity, ActivityView, TimeSpan, or numeric type.

targetType Type

The target type of the binding operation. Not used in this implementation.

parameter object

Optional parameter for the converter. Not used in this implementation.

culture CultureInfo

The culture to use in the converter. Not used in this implementation.

Returns

object

A formatted string representation of the time value.

ConvertBack(object?, Type, object?, CultureInfo?)

Converts a formatted string representation of time back into its original value.

public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo? culture)

Parameters

value object

The value to convert back. Not implemented in this converter.

targetType Type

The target type of the binding operation. Not used in this implementation.

parameter object

Optional parameter for the converter. Not used in this implementation.

culture CultureInfo

The culture to use in the converter. Not used in this implementation.

Returns

object

Throws a NotImplementedException.

Exceptions

NotImplementedException

Thrown because this method is not implemented.