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

Class that arranges shape's ShapeFill and HighlightFill with specified number of those so that two neighboring shapes are not of the same fill and highlight. Before assigning object of this type to InformationLayer.Coloriser property you should specify the ShapeFillCollection and optionally HighlightCollection.

Definition

Namespace:Telerik.Windows.Controls.Map

Assembly:Telerik.Windows.Controls.DataVisualization.dll

Syntax:

C#
public class GraphColoriser : DependencyObject, IMapShapeColorizer

Inheritance: objectGraphColoriser

Implements: IMapShapeColorizer

Constructors

Initializes a new instance of the GraphColoriser class.

C#
public GraphColoriser()

Fields

DependencyProperty for ExtendedPropertyName value.

C#
public static readonly DependencyProperty ExtendedPropertyNameProperty

DependencyProperty for HighlightFillCollection property.

C#
public static readonly DependencyProperty HighlightFillCollectionProperty

ShapeFillCollectionProperty

DependencyProperty

DependencyProperty for ShapeFillCollection property.

C#
public static readonly DependencyProperty ShapeFillCollectionProperty

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 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 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>)

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 GraphColoriser class using the shape list.

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

The shape list.

Implements: IMapShapeColorizer.Prepare(IEnumerable<object>)

Empty method for this class.

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

Some item.

Implements: IMapShapeColorizer.SetColor(IExtendedData)

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