Back to Devexpress

ColorListLegend Class

wpf-devexpress-dot-xpf-dot-map-47a8e485.md

latest2.9 KB
Original Source

ColorListLegend Class

A color legend represented as a list of colors.

Namespace : DevExpress.Xpf.Map

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

NuGet Package : DevExpress.Wpf.Map

Declaration

csharp
public class ColorListLegend :
    ColorLegend
vb
Public Class ColorListLegend
    Inherits ColorLegend

Example

View Example

xaml
<dxm:MapControl.Legends>
    <dxm:SizeLegend Header="Medal Count" Layer="{Binding ElementName=vectorLayer}"/>
    <dxm:ColorListLegend Header="Medal Class" Layer="{Binding ElementName=vectorLayer}"/>
</dxm:MapControl.Legends>

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ColorListLegend class.

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.

wpf-map-load-vector-cartesian-data/CS/MapLesson2/MainWindow.xaml#L11

xml
<dxm:MapControl.Legends>
    <dxm:ColorListLegend Header="Room Type"
                         Layer="{Binding ElementName=vectorLayer, Mode=OneWay}"/>

Inheritance

Show 13 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control MapElement MapLegendBase DataProviderLegend ItemsLayerLegend ColorLegend ColorListLegend

See Also

ColorListLegend Members

DevExpress.Xpf.Map Namespace