InfoWindow window = new InfoWindow() { Anchor = e.MapPoint, Map = MyMap, IsOpen = true, ContentTemplate = LayoutRoot.Resources["LocationInfoWindowTemplate"] as System.Windows.DataTemplate, //Since a ContentTemplate is defined, Content will define the DataContext for the ContentTemplate Content = e.MapPoint };
I can't help you with the images, but in the sample for the InfoWindow the C# code behind handles that coordinate window like this:InfoWindow window = new InfoWindow() { Anchor = e.MapPoint, Map = MyMap, IsOpen = true, ContentTemplate = LayoutRoot.Resources["LocationInfoWindowTemplate"] as System.Windows.DataTemplate, //Since a ContentTemplate is defined, Content will define the DataContext for the ContentTemplate Content = e.MapPoint };The code for the original InfoWindow (for the feature layer) has a return when it's invoked, so this code only fires when you click outside the feature layer. It would probably be as simple as just removing this code as far as I can tell, or you could hook up an if (selection != null) to the original InfoWindow and leave the else unhandled.
Jonathan,Thanks! It really was that simple.Now to just figure out how to add images.Thanks,John
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.