A newer version of this page is available.
Switch to the current version.
IdItemKeyProvider Class
This class is used to provide ID values of map chart items as keys for the KeyColorColorizer to colorize these items.
Namespace: DevExpress.Xpf.Map
Assembly: DevExpress.Xpf.Map.v18.2.dll
Declaration
public class IdItemKeyProvider :
MapDependencyObject,
IColorizerItemKeyProvider
Public Class IdItemKeyProvider
Inherits MapDependencyObject
Implements IColorizerItemKeyProvider
Examples
To colorize map items using the KeyColorColorizer do the following.
- Create a KeyColorColorizer object and assign it to the VectorLayer.Colorizer property.
- Specify the KeyColorColorizer.ItemKeyProvider property.
- Customize the MapColorizer.Colors collection.
- Add several ColorizerKeyItem items to the KeyColorColorizer.Keys collection. Note that if keys are not specified, they will be generated automatically.
NOTE
A complete sample project is available at https://github.com/DevExpress-Examples/customize-appearance-of-generated-pie-chart-items-t183429.
<dxm:VectorLayer.Colorizer>
<dxm:KeyColorColorizer>
<dxm:KeyColorColorizer.ItemKeyProvider>
<dxm:IdItemKeyProvider/>
</dxm:KeyColorColorizer.ItemKeyProvider>
<dxm:KeyColorColorizer.Colors>
<Color>#FFFFCF62</Color>
<Color>#FFA9B5BC</Color>
<Color>#FFE99876</Color>
</dxm:KeyColorColorizer.Colors>
<dxm:KeyColorColorizer.Keys>
<dxm:ColorizerKeyItem Name="Gold">
<dxm:ColorizerKeyItem.Key>
<sys:Int32>1</sys:Int32>
</dxm:ColorizerKeyItem.Key>
</dxm:ColorizerKeyItem>
<dxm:ColorizerKeyItem Name="Silver">
<dxm:ColorizerKeyItem.Key>
<sys:Int32>2</sys:Int32>
</dxm:ColorizerKeyItem.Key>
</dxm:ColorizerKeyItem>
<dxm:ColorizerKeyItem Name="Bronze">
<dxm:ColorizerKeyItem.Key>
<sys:Int32>3</sys:Int32>
</dxm:ColorizerKeyItem.Key>
</dxm:ColorizerKeyItem>
</dxm:KeyColorColorizer.Keys>
</dxm:KeyColorColorizer>
</dxm:VectorLayer.Colorizer>
Implements
Inheritance
Object
DispatcherObject
DependencyObject
Freezable
MapDependencyObject
IdItemKeyProvider
Extension Methods
See Also
Feedback