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.

Definition

Namespace:Telerik.Maui.Controls.Scheduler

Assembly:Telerik.Maui.Controls.dll

Syntax:

cs-api-definition
public class ProgressToRotationConverter : IValueConverter

Inheritance: objectProgressToRotationConverter

Implements: IValueConverter

Constructors

ProgressToRotationConverter()

Declaration

cs-api-definition
public ProgressToRotationConverter()

Properties

Rotation

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

Declaration

cs-api-definition
public double Rotation { get; set; }

Property Value

double

A 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

cs-api-definition
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

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

targetType

Type

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

parameter

object

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

culture

CultureInfo

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.

ConvertBack(object, Type, object, CultureInfo)

Converts a rotation angle back to a progress value. This operation is not supported.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Parameters

value

object

The target value that was produced by the binding target.

targetType

Type

The type to convert to.

parameter

object

The converter parameter to use.

culture

CultureInfo

The culture to use in the converter.

Returns

object

This method always throws NotImplementedException.

Exceptions

NotImplementedException

Always thrown as reverse conversion is not supported.