New to Telerik UI for WPFStart a free 30-day trial

Class that calculates the range collection for the further use in Map Legend. ShapeFill, Min, Max, Mode and properties corresponding to the mode should be determined here.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class ColorMeasureScale : DependencyObject, IMapShapeColorizer

Inheritance: objectColorMeasureScale

Implements: IMapShapeColorizer

Constructors

Initializes a new instance of the ColorMeasureScale class.

C#
public ColorMeasureScale()

Fields

DependencyProperty for ExtendedPropertyName value.

C#
public static readonly DependencyProperty ExtendedPropertyNameProperty

DependencyProperty for HighlightFillCollection property.

C#
public static readonly DependencyProperty HighlightFillCollectionProperty

MaxValueProperty

DependencyProperty

DependencyProperty for Max value.

C#
public static readonly DependencyProperty MaxValueProperty

MinValueProperty

DependencyProperty

DependencyProperty for Min value.

C#
public static readonly DependencyProperty MinValueProperty

ModeProperty

DependencyProperty

DependencyProperty for Mode value.

C#
public static readonly DependencyProperty ModeProperty

RangeDistributionProperty

DependencyProperty

DependencyProperty for IRangeDistribution value.

C#
public static readonly DependencyProperty RangeDistributionProperty

ShapeFillCollectionProperty

DependencyProperty

DependencyProperty for ShapeFillCollection property.

C#
public static readonly DependencyProperty ShapeFillCollectionProperty

TickMarkCountProperty

DependencyProperty

DependencyProperty for TickMarkCount value.

C#
public static readonly DependencyProperty TickMarkCountProperty

TickMarkStepProperty

DependencyProperty

DependencyProperty for TickMarkStep value.

C#
public static readonly DependencyProperty TickMarkStepProperty

Properties

Gets or sets the extended property name.

C#
public string ExtendedPropertyName { get; set; }

Implements: IMapShapeColorizer.ExtendedPropertyName

Gets the collection of MapShapeFill instances for the shapes highlighting.

C#
public MapShapeFillCollection HighlightFillCollection { get; }

Gets or sets value which indicates whether colorizer have been prepared already.

C#
public bool IsPrepared { get; set; }

Implements: IMapShapeColorizer.IsPrepared

Gets or sets the value of Max for the whole MapRangeCollection.

C#
public double MaxValue { get; set; }

Gets or sets the value of Min for the whole MapRangeCollection.

C#
public double MinValue { get; set; }

Gets or sets ColorScaleMode.

C#
public ColorScaleMode Mode { get; set; }

Readonly property to get MapRangeCollection.

C#
public MapRangeCollection RangeCollection { get; }

Gets or sets ranges distribution. This property specify class which creates range distribution. It makes sense when "Count" mode is used for ColorMeasureScale.

C#
public IRangeDistribution RangeDistribution { get; set; }

Gets or sets value which indicates whether colorizer should be re-prepared when items collection of the information layer is changed.

C#
public bool ResetOnItemsChanged { get; set; }

Implements: IMapShapeColorizer.ResetOnItemsChanged

Gets the collection of MapShapeFill instances for the shapes coloring.

C#
public MapShapeFillCollection ShapeFillCollection { get; }

Gets or sets the number of tick marks.

C#
public int TickMarkCount { get; set; }

Gets or sets the number of steps.

C#
public double TickMarkStep { get; set; }

Gets colorizer usage mode.

C#
public ColorizerUsageMode UsageMode { get; }

Implements: IMapShapeColorizer.UsageMode

Methods

Colorize elements from the list.

C#
public void Colorize(IEnumerable<object> shapes)
Parameters:shapesIEnumerable<object>

The shape list.

Implements: IMapShapeColorizer.Colorize(IEnumerable<object>)

Returns MapShapeFill from MapRangeCollection corresponding the value.

C#
public MapShapeFill GetColorByValue(double value)
Parameters:valuedouble

Value.

Returns:

MapShapeFill

MapShapeFill instance corresponding value.

Raises the PrepareCompleted event.

C#
protected virtual void OnPrepareCompleted(ShapeColorizerEventArgs args)
Parameters:argsShapeColorizerEventArgs

The ShapeColorizerEventArgs instance containing the event data.

Raises the UpdateLegend event.

C#
protected virtual void OnUpdateLegend()

Prepares the instance of the ColorMeasureScale class using the shape list.

C#
public void Prepare(IEnumerable<object> shapes)
Parameters:shapesIEnumerable<object>

The shape list.

Implements: IMapShapeColorizer.Prepare(IEnumerable<object>)

Sets color to item by extended data.

C#
public void SetColor(IExtendedData item)
Parameters:itemIExtendedData

Item of IExtendedData type.

Implements: IMapShapeColorizer.SetColor(IExtendedData)

Colors shapes according to specified property from extended data.

C#
public void SetColorByExtendedData(IEnumerable<object> shapes, string propertyName, bool autoRange)
Parameters:shapesIEnumerable<object>

Shapes collection.

propertyNamestring

Name of property from extended data (should have numeric type).

autoRangebool

If set to true automatically calculates the scale range.

Colors shapes according to specified property from extended data.

C#
public void SetColorByExtendedData(IEnumerable<object> shapes, string propertyName)
Parameters:shapesIEnumerable<object>

Shapes collection.

propertyNamestring

Name of property from extended data (should have numeric type).

Set callback that colors the framework element. If the parameter is null, then built-in callback will be used.

C#
public void SetColorCallback(ColorMeasureScale.SetColorDelegate colorCallback)
Parameters:colorCallbackColorMeasureScale.SetColorDelegate

Delegate method.

Specifies Min and Max value according to extended data of shapes.

C#
public void SetScaleRangeByExtendedData(IEnumerable<object> shapes, string propertyName)
Parameters:shapesIEnumerable<object>

Shapes.

propertyNamestring

Property name.

Events

The Prepare completed event handler.

C#
public event EventHandler<ShapeColorizerEventArgs> PrepareCompleted

Implements: IMapShapeColorizer.PrepareCompleted

The update legend event handler. Occurs when the instance is changed and the map legend should be updated.

C#
public event EventHandler UpdateLegend

Implements: IMapShapeColorizer.UpdateLegend