Definition
Namespace:Telerik.Maui.Controls
Assembly:Telerik.Maui.Controls.dll
Syntax:
C#
public class TimeOnlyToTimeSpanConverter : IValueConverter
Inheritance: objectTimeOnlyToTimeSpanConverter
Implements:
Constructors
C#
public TimeOnlyToTimeSpanConverter()
Methods
C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert. Should be a TimeOnly instance.
targetTypeTypeThe type to convert to.
parameterobjectAn optional parameter (not used).
cultureCultureInfoThe culture to use for conversion (not used).
Returns:A TimeSpan representation of the TimeOnly value, or the original value if conversion is not possible.
C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The value to convert back. Should be a TimeSpan instance.
targetTypeTypeThe type to convert back to.
parameterobjectAn optional parameter (not used).
cultureCultureInfoThe culture to use for conversion (not used).
Returns:A TimeOnly representation of the TimeSpan value, or the original value if conversion is not possible.