Class
GaugeValueToStringConverter

Converts a value to a string and vice versa providing a Precision property to control the floating point precision of the converted value.

Definition

Namespace:Telerik.UI.Xaml.Controls.DataVisualization

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class GaugeValueToStringConverter : IValueConverter

Inheritance: objectGaugeValueToStringConverter

Implements: IValueConverter

Constructors

GaugeValueToStringConverter()

Declaration

cs-api-definition
public GaugeValueToStringConverter()

Properties

Precision

Gets or sets the number of digits to be displayed after the decimal sign. This property is used only when converting a value to string, not vice versa.

Declaration

cs-api-definition
public int Precision { get; set; }

Property Value

int

Methods

Convert(object, Type, object, string)

Converts a value to string depending on the Precision property.

Declaration

cs-api-definition
public object Convert(object value, Type targetType, object parameter, string language)

Parameters

value

object

targetType

Type

parameter

object

language

string

Returns

object

ConvertBack(object, Type, object, string)

Parses a string to double number.

Declaration

cs-api-definition
public object ConvertBack(object value, Type targetType, object parameter, string language)

Parameters

value

object

targetType

Type

parameter

object

language

string

Returns

object