skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop

    Web

    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI UI for Xamarin

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Test Studio Dev Edition Telerik JustMock

    CMS

    Sitefinity

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Forums
    • Videos
    • Blogs
    • Accessibility and Security
    • Submit a Ticket

    Productivity and Design Tools

    • Visual Studio Extensions
    • Visual Studio Templates
    • Embedded Reporting
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class GraphColoriser

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.

Inheritance
System.Object
GraphColoriser
Namespace: Telerik.Windows.Controls.Map
Assembly: Telerik.Windows.Controls.DataVisualization.dll

Syntax

public class GraphColoriser : DependencyObject, IMapShapeColorizer

Constructors

GraphColoriser()

Initializes a new instance of the GraphColoriser class.

Declaration
public GraphColoriser()

Fields

ExtendedPropertyNameProperty

DependencyProperty for ExtendedPropertyName value.

Declaration
public static readonly DependencyProperty ExtendedPropertyNameProperty
Field Value
System.Windows.DependencyProperty

HighlightFillCollectionProperty

DependencyProperty for HighlightFillCollection property.

Declaration
public static readonly DependencyProperty HighlightFillCollectionProperty
Field Value
System.Windows.DependencyProperty

ShapeFillCollectionProperty

DependencyProperty for ShapeFillCollection property.

Declaration
public static readonly DependencyProperty ShapeFillCollectionProperty
Field Value
System.Windows.DependencyProperty

Properties

ExtendedPropertyName

Gets or sets the extended property name.

Declaration
public string ExtendedPropertyName { get; set; }
Property Value
System.String

Implements
IMapShapeColorizer.ExtendedPropertyName

HighlightFillCollection

Gets the collection of MapShapeFill instances for the shapes highlighting.

Declaration
public MapShapeFillCollection HighlightFillCollection { get; }
Property Value
MapShapeFillCollection

IsPrepared

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

Declaration
public bool IsPrepared { get; set; }
Property Value
System.Boolean

Implements
IMapShapeColorizer.IsPrepared

ResetOnItemsChanged

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

Declaration
public bool ResetOnItemsChanged { get; set; }
Property Value
System.Boolean

Implements
IMapShapeColorizer.ResetOnItemsChanged

ShapeFillCollection

Gets the collection of MapShapeFill instances for the shapes coloring.

Declaration
public MapShapeFillCollection ShapeFillCollection { get; }
Property Value
MapShapeFillCollection

UsageMode

Gets colorizer usage mode.

Declaration
public ColorizerUsageMode UsageMode { get; }
Property Value
ColorizerUsageMode

Implements
IMapShapeColorizer.UsageMode

Methods

Colorize(IEnumerable<Object>)

Colorize elements from the list.

Declaration
public void Colorize(IEnumerable<object> shapes)
Parameters
System.Collections.Generic.IEnumerable<System.Object> shapes

The shape list.

Implements
IMapShapeColorizer.Colorize(IEnumerable<Object>)

OnPrepareCompleted(ShapeColorizerEventArgs)

Raises the PrepareCompleted event.

Declaration
protected virtual void OnPrepareCompleted(ShapeColorizerEventArgs args)
Parameters
ShapeColorizerEventArgs args

The ShapeColorizerEventArgs instance containing the event data.

OnUpdateLegend()

Raises the UpdateLegend event.

Declaration
protected virtual void OnUpdateLegend()

Prepare(IEnumerable<Object>)

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

Declaration
public void Prepare(IEnumerable<object> shapes)
Parameters
System.Collections.Generic.IEnumerable<System.Object> shapes

The shape list.

Implements
IMapShapeColorizer.Prepare(IEnumerable<Object>)

SetColor(IExtendedData)

Empty method for this class.

Declaration
public void SetColor(IExtendedData item)
Parameters
IExtendedData item

Some item.

Implements
IMapShapeColorizer.SetColor(IExtendedData)

Events

PrepareCompleted

The Prepare completed event handler.

Declaration
public event EventHandler<ShapeColorizerEventArgs> PrepareCompleted
Event Type
System.EventHandler<ShapeColorizerEventArgs>

Implements
IMapShapeColorizer.PrepareCompleted

UpdateLegend

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

Declaration
public event EventHandler UpdateLegend
Event Type
System.EventHandler

Implements
IMapShapeColorizer.UpdateLegend

Extension Methods

CollectionExtensions.ToEnumerable<T>(T)
EnumerableExtensions.ToEnumerable<T>(T)
Getting Started
  • Install Now
  • Demos
  • SDK Samples Browser
  • Sample Applications
Support Resources
  • Code Library
  • Knowledge Base
  • MVVM Support
  • Videos
  • GitHub SDK Repository
Community
  • Forums
  • Blogs
  • XAML Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.