Back to Devexpress

ColorScaleLegend.EnableGradientScale Property

wpf-devexpress-dot-xpf-dot-map-dot-colorscalelegend.md

latest1.8 KB
Original Source

ColorScaleLegend.EnableGradientScale Property

Gets or sets whether a gradient applies across a legend‘s color items.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public bool EnableGradientScale { get; set; }
vb
Public Property EnableGradientScale As Boolean

Property Value

TypeDescription
Boolean

true , if the gradient mode is enabled; otherwise, false.

|

Remarks

The following images show the EnableGradientScale property in action.

EnableGradientScale = true :

EnableGradientScale = false :

Example

xaml
<dxm:MapControl.Legends>
    <dxm:ColorScaleLegend EnableGradientScale="True" 
                          Layer="{Binding ElementName=heatLayer}" 
                          Visibility="Visible" 
                          Header="Seismic Density" 
                          MinWidth="100" />
</dxm:MapControl.Legends>

See Also

ColorScaleLegend Class

ColorScaleLegend Members

DevExpress.Xpf.Map Namespace