New to Telerik UI for .NET MAUIStart a free 30-day trial

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:

C#
public class ProgressToRotationConverter : IValueConverter

Inheritance: objectProgressToRotationConverter

Implements: IValueConverter

Constructors

C#
public ProgressToRotationConverter()

Properties

Gets or sets the rotation multiplier used to calculate the final rotation angle.

C#
public double Rotation { get; set; }
Property Value:

A double value that represents the rotation multiplier. The progress value will be multiplied by this value to determine the final rotation angle.

Methods

Converts a progress value to a rotation angle by multiplying it with the Rotation property.

C#
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The source value to convert. Expected to be a double representing progress.

targetTypeType

The type of the binding target property. This parameter is not used.

parameterobject

The converter parameter to use. This parameter is not used.

cultureCultureInfo

The culture to use in the converter. This parameter is not used.

Returns:

object

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.

C#
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters:valueobject

The target value that was produced by the binding target.

targetTypeType

The type to convert to.

parameterobject

The converter parameter to use.

cultureCultureInfo

The culture to use in the converter.

Returns:

object

This method always throws NotImplementedException.

Exceptions:

NotImplementedException

Always thrown as reverse conversion is not supported.