Hi, I am using the following wpf to create a popup when clicking on feature on map. The popup sometimes displays outside of the view window.
I would like to display the popup always in the centre of the map screen.
Any ideas??
Have you considered using the ShowCalloutAt method instead? This will host your UI element and move it around to keep it on top of the map.
A more advanced method would be to create a custom control yourself to host your content, and have that implement IViewOverlay interface, which will give you the information needed to re-arrange the view yourself (this is also what the callout uses to do this).