Monday, August 29, 2011

Using the Bing Maps WPF control to build an, "OMG, was that an earthquake...?" app

ElegantCode - Build an Earthquake Application with Bing Maps WPF Control (Beta)

"Recently you may have noticed that the Bing Maps team released a WPF Map control which is currently in Beta. In light of the recent earth quake on the east coast of the United States, I thought an earthquake application would be a great way to become familiar with the Map control. There are a few things you must do before we can get started.

  1. Get the Bing Maps WPF control.
  2. Get a Bing Maps API key. (not needed for development)

Now that you have that out of the way let’s write an application. Create a new WPF application targeting the .NET 4.0 framework. Add a reference to the Microsoft.Maps.MapControl.WPF.dll. This will most likely be located in Program Files or Program Files (x86) –> Bing Maps WPF Control –> Beta –> Libraries. Next you need to declare a namespace in XAML:




Living in Los Angeles, earthquakes are always on my mind... "Wait, was that...?? No, guess not...". I go to the site all the time, but having a quick an dirty app would be much cooler... :)

(via Pete Brown - Windows Client Developer Roundup 080 for 8/29/2011)

No comments: