<my:MapControl x:Name="myMapControl" MapServiceToken=" ***" Loaded="myMapControl_Loaded" ZoomLevelChanged="myMapControl_ZoomLevelChanged" > <Button Name="ZoomOut" Content="-" HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="60" Width="60" Click="ZoomOut_Click" FontWeight="Bold" Padding="0,-9,0,0" /> </my:MapControl> private void AddMapIcon(float lat, float lon, string title) { MapIcon MapIcon1 = new MapIcon(); MapIcon1.Location = new Geopoint(new BasicGeoposition() { Latitude = lat, Longitude = lon }); MapIcon1.NormalizedAnchorPoint = new Point(0.5, 1.0); MapIcon1.Title = title; MapIcon1.Image = RandomAccessStreamReference.CreateFromUri(new Uri("ms-appx:///" + dl.urlimg)); myMapControl.MapElements.Add(MapIcon1); }
how to handle clicking on mapicon? In the documentation I found https://msdn.microsoft.com/ru-ru/library/windows/apps/windows.ui.xaml.controls.maps.mapcontrol.mapelementclick.aspx but did not find such an event where it should be.