none
Binding a collection RRS feed

  • Question

  • Hello,

    Is there any way to binding a collection of entities to Pushpin?

    I tried to Binding ItemsSource to map control but anything happens. This is my xaml code:

                <bm:Map Credentials="INSERT_YOUR_BING_MAPS_KEY" x:Name="myMap" ItemsSource="{Binding Pictures}">
                    <bm:Map.Children >
                        <bm:Pushpin Text="{Binding Title}">
                            <bm:MapLayer.Position>
                                <bm:Location Latitude="{Binding Latitude}" Longitude="{Binding Longitude}" />
                            </bm:MapLayer.Position>
                        </bm:Pushpin>
                    </bm:Map.Children>
                </bm:Map>
    
    Thanks!

    Alberto Diaz Martin twitter://@adiazcan | http://geeks.ms/blogs/adiazmartin | MVP SharePoint Server

    Wednesday, April 11, 2012 2:59 PM

Answers