问题描述
|
我想对基于WPF C#语言的应用程序进行编程。
我已经在运行bing地图,我希望数据集显示在地图上,图钉位于特定位置的顶部。
解决方法
我不知道您是否可以使它工作,但是我可以在这几行XAML代码和绑定中做到这一点。
<bing:MapItemsControl ItemsSource=\"{Binding LocationsList}\">
<bing:MapItemsControl.ItemTemplate>
<DataTemplate>
<bing:Pushpin Location=\"{Binding Location}\" Content=\"{Binding Content}\">
</bing:Pushpin>
</DataTemplate>
</bing:MapItemsControl.ItemTemplate>
</bing:MapItemsControl>