Represents a value converter that converts a progress value to a rotation angle. This converter multiplies the input progress value by the Rotation property to calculate the rotation angle.
Definition
Namespace:Telerik.Maui.Controls.Scheduler
Assembly:Telerik.Maui.Controls.dll
Syntax:
public class ProgressToRotationConverter : IValueConverter
Inheritance: objectProgressToRotationConverter
Implements:
Constructors
public ProgressToRotationConverter()
Properties
Methods
Converts a progress value to a rotation angle by multiplying it with the Rotation property.
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
The source value to convert. Expected to be a double representing progress.
targetTypeTypeThe type of the binding target property. This parameter is not used.
parameterobjectThe converter parameter to use. This parameter is not used.
cultureCultureInfoThe culture to use in the converter. This parameter is not used.
Returns:A double representing the calculated rotation angle if the input value is a valid progress value; otherwise, returns 0.
Converts a rotation angle back to a progress value. This operation is not supported.
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
The target value that was produced by the binding target.
targetTypeTypeThe type to convert to.
parameterobjectThe converter parameter to use.
cultureCultureInfoThe culture to use in the converter.
Returns:This method always throws NotImplementedException.
Exceptions:Always thrown as reverse conversion is not supported.