Skip to main content
All docs
V25.1
  • 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.1.dll

    NuGet Package: DevExpress.Wpf.Map

    Declaration

    public bool EnableGradientScale { get; set; }

    Property Value

    Type Description
    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

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