Databinding shapes with the Bing Maps control for Silverlight

Updated 3 weeks, 5 days ago

Source: http://davidburela.wordpress.com/

The March 2009 release of the Virtual Earth control for Silverlight (now known as the bing map control) was a great release. Up until then, projects like Deep Earth were trying to provide us with a way to use deep zoom + the virtual earth tiling to allow us to build Silverlight apps. Now Microsoft have given us an official control to play with.

One of the big downsides of the official control was the lack of databinding. You still had to add / remove your pushpins & shapes manually just ...

  • 17 comments on this story
PRO

50% positive

Showing 8 relevant reactions out of 17.

csharp_tan 3 weeks, 5 days ago on Twitter

@MSExpression さんが、「 Databinding shapes with the Bing Maps control for #Silverlight - http://bit.ly/aZVvp - #msexp 」とつぶやいています♪

Reply

csharp_tan 4 weeks, 1 day ago on Twitter

@DavidBurela さんが、「 New blog post: Databinding with the virtual earth control for #silverlight http://twurl.nl/5zcf1z 」とつぶやいています♪

Reply

csharp_tan 3 months ago on Twitter

@brian_henderson さんが、「 Databinding shapes with the Bing Maps control for #Silverlight - http://bit.ly/aZVvp - via: @MSExpression 」とつぶやいています♪

Reply

David Burela 3 months ago on Wordpress

@AlexSerrano: The databinding for the control should be similar to how you would expect it.

Extend the POI class so that it has the property you need e.g. AlertProp

Then tell your control that AlertLevel=”{Binding Path=AlertProp}” and it should pick it up from the underlying object. Good question, maybe I should update the example so there is some databound text in the
... See all content

Reply

David Burela 3 months ago on Wordpress

@HughSaalmans The speed of “traditional” vs. the databinding example should be the same. As far as I know under the covers it is still using the same add/remove functions. So the rendering speed should be exactly the same, the only time it might be different is when you modify the collection and it has to do a bit more work

Reply

Alex Serrano 3 months ago on Wordpress

Thanks David for this example. I’ve tried the example it works great. I have a question though and I hope I’m not too off-topic: I have a custom control (basically a blinking light) as my PushPin.xaml. This control has a set of dependency properties that when populated change some aspect of its UI, e.g. when property AlertLevel is “Red” the control will blink red, when AlertLevel ... See all content

Reply

Hugh Saalmans 3 months, 1 week ago on Wordpress

Good stuff,

Any ideas on the performance implications versus the “traditional” method of loading polygons in the Bing Maps SL Control?

Reply

DavidBurela 3 months, 1 week ago on Twitter

New blog post: Databinding with the virtual earth control for #silverlight http://twurl.nl/5zcf1z

Reply

© uberVU Ltd. 2010

Terms of use