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
valueobjectThe value to convert. Can be a SummaryActivity, ActivityView, TimeSpan, or numeric type.
targetTypeTypeThe target type of the binding operation. Not used in this implementation.
parameterobjectOptional parameter for the converter. Not used in this implementation.
cultureCultureInfoThe 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
valueobjectThe value to convert back. Not implemented in this converter.
targetTypeTypeThe target type of the binding operation. Not used in this implementation.
parameterobjectOptional parameter for the converter. Not used in this implementation.
cultureCultureInfoThe 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.