4
我想在Windows 10應用程序的MapControl中添加圖釘,但似乎自Windows 8.1以後控件就消失了。將圖釘添加到UWP中的MapControl中
它是如此簡單:
Pushpin locationPushpin = new Pushpin();
locationPushpin.Background = new SolidColorBrush(Colors.Purple);
locationPushpin.Content = "You are here";
locationPushpin.Tag = "locationPushpin";
locationPushpin.Location = watcher.Position.Location;
this.map.Children.Add(locationPushpin);
this.map.SetView(watcher.Position.Location, 18.0);
但圖釘型不再被認可......
當用戶在某些經度和緯度上放置MapIcon時,是否可以拖動此MapIcon並獲取位置? –
@KinjanBhavsar我還沒有玩過那麼多,但我會在* MapControl *類和它的事件中搜索。 – Romasz
將搜索相同。 –