0

wpf c# 言語に基づいてアプリケーションをプログラムしたいと考えています。

bing マップを実行しています。特定の場所の上にプッシュピンを付けてデータセットをマップに表示したいと考えています。

4

1 に答える 1

0

あなたがそれを機能させることができるかどうかはわかりませんが、この数行の 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>
于 2012-01-14T18:40:11.680 に答える