Skip to main content

KeyColorColorizer Class

A colorizer that uses key-color pairs to colorize map items.

Namespace: DevExpress.Xpf.Map

Assembly: DevExpress.Xpf.Map.v23.2.dll

NuGet Package: DevExpress.Wpf.Map


public class KeyColorColorizer :


To colorize map items using the KeyColorColorizer do the following.

  1. Create a KeyColorColorizer object and assign it to the VectorLayer.Colorizer property.
  2. Specify the KeyColorColorizer.ItemKeyProvider property.
  3. Customize the MapColorizer.Colors collection.
  4. Add several ColorizerKeyItem items to the KeyColorColorizer.Keys collection. Note that if keys are not specified, they will be generated automatically.
            <dxm:ColorizerKeyItem Name="Gold">
            <dxm:ColorizerKeyItem Name="Silver">
            <dxm:ColorizerKeyItem Name="Bronze">

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the KeyColorColorizer class.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also