Class ProgressToRotationConverter
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.
Inheritance
Namespace: Telerik.Maui.Controls.Scheduler
Assembly: Telerik.Maui.Controls.dll
Syntax
public class ProgressToRotationConverter : Object, IValueConverter
Remarks
This converter is commonly used in UI scenarios where progress needs to be visualized as rotation, such as progress indicators or animated elements in the scheduler.
Constructors
ProgressToRotationConverter()
Declaration
public ProgressToRotationConverter()
Properties
Rotation
Gets or sets the rotation multiplier used to calculate the final rotation angle.
Declaration
public double Rotation { get; set; }
Property Value
System.Double
A System.Double value that represents the rotation multiplier. The progress value will be multiplied by this value to determine 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
System.Object
value
The source value to convert. Expected to be a System.Double representing progress. |
System.Type
targetType
The type of the binding target property. This parameter is not used. |
System.Object
parameter
The converter parameter to use. This parameter is not used. |
System.Globalization.CultureInfo
culture
The culture to use in the converter. This parameter is not used. |
Returns
System.Object
A System.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
System.Object
value
The target value that was produced by the binding target. |
System.Type
targetType
The type to convert to. |
System.Object
parameter
The converter parameter to use. |
System.Globalization.CultureInfo
culture
The culture to use in the converter. |
Returns
System.Object
This method always throws System.NotImplementedException. |
Exceptions
System.NotImplementedException
Always thrown as reverse conversion is not supported. |