Я попытался добавить изображение через следующее, но он все еще не работает. Тип изображения - это контент.Добавление изображения в Bing map
Image image = new Image();
image.Source = new System.Windows.Media.Imaging.BitmapImage(new Uri("myimage.png", UriKind.Relative));
//Define the image display properties
image.Opacity = 1.0;
image.Stretch = Stretch.Fill;
image.Width = 40;
image.Height = 40;
// Center the image around the location specified
//Add the image to the defined map layer
phoneDetailsLayer.AddChild(image, e.Position.Location);
mapViewAll.Children.Remove(phoneDetailsLayer);
mapViewAll.Children.Add(phoneDetailsLayer);
Вы получаете сообщение об ошибке или просто не отображается? – keyboardP
нет сообщения об ошибке, просто не отображается – ericlee
Проверьте свои изображения Местоположение и путь, и я использовал в изображениях Свойства Создать действие как ресурс. – BigL