ThinkGeo.com    |     Documentation    |     Premium Support

How to make custom WPF User Control Legend appear in Export

Hi Team! We implemented a custom legend as a Canvas in a UserControl, as the inbuilt legend did not work for us, and this was easier.

How do we make this work with the Export Map / Print functionality of ThinkGeo?

If you need any other information please let me know.

Thanks!
J

Hi Julian,

You can do it in a couple ways:

  • Simplest way: put your legend and the MapView in the same container (like a Grid ) and export/print that container — they’ll go out together.
  • render the legend to an image, then draw it on top of the map during export/print.

It should be straightforward if go with option 1, let me know if you have any questions.

Thanks,
Ben