ClassProgressToRotationConverter
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
ProgressToRotationConverter()
Declaration
public ProgressToRotationConverter()
Properties
Rotation
Gets or sets the rotation multiplier used to calculate the final rotation angle.
Methods
Convert(object, Type, object, CultureInfo)
Converts a progress value to a rotation angle by multiplying it with the Rotation property.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The source value to convert. Expected to be a double representing progress.
targetType
The type of the binding target property. This parameter is not used.
parameter
The converter parameter to use. This parameter is not used.
culture
The 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.
ConvertBack(object, Type, object, CultureInfo)
Converts a rotation angle back to a progress value. This operation is not supported.
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
value
The target value that was produced by the binding target.
targetType
The type to convert to.
parameter
The converter parameter to use.
culture
The culture to use in the converter.
Returns
This method always throws NotImplementedException.
Exceptions
Always thrown as reverse conversion is not supported.