Back to Devexpress

SunburstControl.Colorizer Property

wpf-devexpress-dot-xpf-dot-treemap-dot-sunburstcontrol-5a73c699.md

latest2.2 KB
Original Source

SunburstControl.Colorizer Property

Gets or sets a colorizer that is applied to the Sunburst’s sectors.

Namespace : DevExpress.Xpf.TreeMap

Assembly : DevExpress.Xpf.TreeMap.v25.2.dll

NuGet Package : DevExpress.Wpf.TreeMap

Declaration

csharp
public SunburstColorizerBase Colorizer { get; set; }
vb
Public Property Colorizer As SunburstColorizerBase

Property Value

TypeDescription
DevExpress.Xpf.TreeMap.SunburstColorizerBase

The colorizer that is used to paint the Sunburst chart.

|

Remarks

The Sunburst control uses colorizers to paint its sectors based on conditions. To apply a colorizer to a Sunburst chart, initialize the Colorizer property with an object of one of the following classes:

To implement a custom colorizer, create a class that is derived from SunburstPaletteColorizerBase.

Example

The following code uses a SunburstPaletteColorizer to paint a Sunburst chart:

xaml
<dxtm:SunburstControl>
    <dxtm:SunburstControl.Colorizer>
        <dxtm:SunburstPaletteColorizer VaryColorInGroup="True">
            <dxtm:SunburstPaletteColorizer.Palette>
                <dxtm:NorthernLightsPalette/>
            </dxtm:SunburstPaletteColorizer.Palette>               
        </dxtm:SunburstPaletteColorizer>
    </dxtm:SunburstControl.Colorizer>
</dxtm:SunburstControl>

See Also

SunburstControl Class

SunburstControl Members

DevExpress.Xpf.TreeMap Namespace