web 2.0

Virtual Earth Silverlight Map Control CTP announced at Mix

Microsoft Virtual Earth Silverlight Map Control was announced at Mix09 as a CTP. Download the Microsoft Virtual Earth Silverlight Map Control CTP on Microsoft Connect.

And you must be thinking. Ok, this shouldn't be so easy to have at my site. You are wrong!

First thing you'll do is download the control (a .dll) from Microsoft Connect (bits available later this week). Add the .dll to your Silverlight project as a resource. In your default XAML template, you'll add 2, count 'em, 2 lines of code to get a Virtual Earth Silverlight map into your site.

  1. Add a reference to the common language runtime namespace (Microsoft.VirtualEarth.MapControl) and the assembly of the same name:
    • xmlns:m="clr-namespace:Microsoft.VirtualEarth.MapControl;assembly:Microsoft.VirtualEarth.MapControl"
  2. Add one line of XAML to your code in the grid element:
    • <m:Map/>

It's awesome, you even don't need to write almost any code. Thanks guys!

You can see some videos of Chris Pendleton's at Mix09.

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags: ,

Virtual Earth | Silverlight