Class
GaugeValueToBrushConverter

This converter can be used to fill visual elements in the ticks and labels with a color that depends on the value of the tick or label.

Definition

Namespace:Telerik.UI.Xaml.Controls.DataVisualization

Assembly:Telerik.WinUI.Controls.dll

Syntax:

cs-api-definition
public class GaugeValueToBrushConverter : IValueConverter

Inheritance: objectGaugeValueToBrushConverter

Implements: IValueConverter

Constructors

GaugeValueToBrushConverter()

Initializes a new instance of the GaugeValueToBrushConverter class.

Declaration

cs-api-definition
public GaugeValueToBrushConverter()

Properties

DefaultColor

Gets or sets the default color of the converter.

Declaration

cs-api-definition
public Color DefaultColor { get; set; }

Property Value

Color

Remarks

If a value is passed that is not in the ranges list the default color will be returned.

Ranges

Gets a list of GaugeColorToValueRanges.

Declaration

cs-api-definition
public Collection<GaugeColorValueRange> Ranges { get; }

Property Value

Collection<GaugeColorValueRange>

Methods

Convert(object, Type, object, string)

Converts the value to its corresponding color.

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)

Not implemented.

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