Is there a simple example showing how to set up a legend in WPF?

691
2
06-07-2021 12:11 PM
SteveStamm
New Contributor II

I am converting an old 10.2 WPF application to the latest.

It looks like the legend technology have been totally reworked. Does anyone have a pointer to a simple example showing how to set up a legend in 100.10+ WPF?

Thanks so much for any help.

Steve

0 Kudos
2 Replies
MichaelBranscomb
Esri Frequent Contributor

Hi,

There's a simple example showing how to create one from scratch in our samples: https://github.com/Esri/arcgis-runtime-samples-dotnet/tree/main/src/WPF/ArcGISRuntime.WPF.Viewer/Sam...

There's also a Legend control in the Toolkit (which you can reference from Nuget.org or build from source): https://esri.github.io/arcgis-toolkit-dotnet/controls.html. The Toolkit repo contains a SampleApp demonstrating the Legend.

0 Kudos
BjornKuiper1
New Contributor
0 Kudos