Back to Devexpress

PaletteBase.ScaleMode Property

wpf-devexpress-dot-xpf-dot-treemap-dot-palettebase.md

latest1.7 KB
Original Source

PaletteBase.ScaleMode Property

Specifies how to distribute colors when the palette contains less colors than the number of chart items.

Namespace : DevExpress.Xpf.TreeMap

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

NuGet Package : DevExpress.Wpf.TreeMap

Declaration

csharp
public PaletteScaleMode ScaleMode { get; set; }
vb
Public Property ScaleMode As PaletteScaleMode

Property Value

TypeDescription
PaletteScaleMode

The mode that specifies how colors are distributed.

|

Available values:

NameDescription
Repeat

Palette colors are repeated for the last chart items.

| | Extrapolate |

The last chart items use palette colors with varying brightness.

|

Remarks

The following code shows how to configure a treemap palette colorizer and specify its palette’s scale mode:

xaml
<dxtm:TreeMapControl.Colorizer>
    <dxtm:TreeMapPaletteColorizer ColorizeGroups="True">
        <dxtm:GreenYellowPalette ScaleMode="Extrapolate"/>
    </dxtm:TreeMapPaletteColorizer>
</dxtm:TreeMapControl.Colorizer>

See Also

PaletteBase Class

PaletteBase Members

DevExpress.Xpf.TreeMap Namespace