Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VectorLayer.Colorizer Property

Gets or sets the colorizer for the vector layer.

Namespace: DevExpress.Xpf.Map

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

NuGet Package: DevExpress.Wpf.Map

#Declaration

public MapColorizer Colorizer { get; set; }

#Property Value

Type Description
MapColorizer

A MapColorizer class descendant object.

#Example

This example demonstrates how to paint map contours loaded from a Shapefile (Countries.shp) using the graph colorizer.

To accomplish this task, create a graph colorizer (the GraphColorizer object) and assign it to the VectorLayer.Colorizer property.

And finally, specify the desired set of colors in the ColorCollection object that is accessed via the MapColorizer.Colors property.

View Example

<dxm:VectorLayer.Colorizer>
    <dxm:GraphColorizer>
        <dxm:GraphColorizer.Colors>
            <Color>#D6864E</Color>
            <Color>#C56450</Color>
            <Color>#BA4D51</Color>
            <Color>#5F8B95</Color>
            <Color>#799689</Color>
            <Color>#A2A875</Color>
        </dxm:GraphColorizer.Colors>
    </dxm:GraphColorizer>
</dxm:VectorLayer.Colorizer>

The following code snippets (auto-collected from DevExpress Examples) contain references to the Colorizer property.

Note

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