TreeMapGroupGradientColorizer.GradientColor Property
Gets or sets the color mixed with the group color for a tree map item.
Namespace: DevExpress.Xpf.TreeMap
Assembly: DevExpress.Xpf.TreeMap.v19.2.dll
Declaration
Property Value
Type | Description |
---|---|
Color | A Color value. |
Example
To color tree map items using the Group Gradient Colorizer, do the following.
- Assign a newly created TreeMapGroupGradientColorizer object to the TreeMapControl.Colorizer property.
- Specify the required palette using the TreeMapPaletteColorizerBase.Palette property, and the gradient color using
TreeMapGroupGradientColorizer.GradientColor
. - Optionally, set the TreeMapGroupGradientColorizer.Min and TreeMapGroupGradientColorizer.Max properties to required values.
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-color-tree-map-items-using-group-gradient-colorizer-t307525.
<dxtm:TreeMapControl.Colorizer>
<dxtm:TreeMapGroupGradientColorizer
GradientColor="White"
Min="0.5"
Max="1">
<dxtm:Office2013Palette/>
</dxtm:TreeMapGroupGradientColorizer>
</dxtm:TreeMapControl.Colorizer>
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the GradientColor 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.