Xaml and Bing Maps – Part 2

This is the second in a two part series (link to Part 1) where I cover Xaml development with Bing Maps for Enterprise.  In Part 2 below, I cover building this Silverlight Application.

 image image image
(Sample code attached to this blog post below. Please review the code usage guidelines here.)

Setup

This Silverlight 3 application requires the .NET RIA Services May 2009 Preview available here.  If you have not had a chance to install Silverlight 3 beta or Expression Blend 3 beta, download the Mix beta bits here.  You will also need the Bing Maps Silverlight Map Control CTP bits from Mix 09.   If you don’t have the Northwind sample database, please download it here.

This application requires that the Customers and Suppliers tables in the Northwind sample database have fields for the following data:

  • Latitude
  • Longitude
  • LatLong (This field stores the Latitude followed by a comma and then the Longitude)

Please check out Part 1 to download a utility that uses the WPF Bing Map web services to populate the location data in the Customers and Suppliers tables (or for any other database).  Also, here is a link to my teammate Michael Scherotter's blog post regarding adding attached properties to the Bing Maps Silverlight control. 

The Application 

The application has two map layers, one for customers and one for suppliers, that it plots on top of the Bing Maps Silverlight control.  The other two tabs display a master / detail form for the Suppliers and Customers tables from Northwind (Images of the application are above).

There isn’t actually a tremendous amount of coding involved because the application takes advantage of Silverlight 3 data binding, the Bing Maps Silverlight control,  and the .NET RIA Services framework.  Much of the effort is understanding how to wire up everything along with a little bit of code:-).  Here is the presentation.  (Go to about 1:30 in the player to skip the overview.)

Link to Part 1.

NorthwindMapsLOB.zip