[WPF] MapWinGIS is above everything

I’m designing the UI for where the MapWinGIS will appear in my project and I am trying to place buttons/controls over the MapWinGIS but it’s not working.

In fact, nothing can be placed over the MapWinGIS. I tried:

  • Right clicking and pressing ‘Bring to Front’ or ‘Send to Back’ on the respective controls
  • Messing with Panel.ZIndex
  • Changing the order of the controls in the XAML
  • Tried calling map.SendToBack on the AxMap variable upon creation

Anyone has any idea on how to achieve this?

I thought about maybe calling map.SendToBack() a bit after everything has loaded so for testing purposes I tried adding the MouseMove event for either:

  • the control itself (I made a custom user control to host the WindowsFormsHost/AxMap)
  • the WindowsFormsHost itself
  • the map itself

but the event never fires. Weird.

Actually need a mod to delete or flag this or something.

Turns out there is nothing wrong with MapWinGIS, my bad, the problem is with WindowsFormsHost.

There is no current fix.