【发布时间】:2016-02-08 10:31:12
【问题描述】:
我想将 Pushpin 添加到 Windows 10 应用程序中的 MapControl,但自 Windows 8.1 以来该控件似乎已消失。
就这么简单:
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);
但是图钉类型不再被识别...
【问题讨论】:
标签: c# xaml windows-runtime winrt-xaml uwp