O'Reilly logo

Windows Phone 7.5: Building Location-aware Applications by Zeeshan Chawdhary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Plotting events on Bing Maps

In Chapter 3, Using Maps in your Windows Phone App, we saw how to use Bing Maps and pushpins within our apps. Now, let us use that knowledge to incorporate maps within our "Hello Events" franchise:

  1. Create a new Silverlight for Windows Phone project and Name it HelloEvents-Maps.
  2. Copy the code and UI from our previous HelloEvents-Categories example. We will make some changes in the EventPage.xaml and EventPage.xaml.cs files to show maps and events plotted on the maps.
  3. Add a button and a map control to your EventPage.xaml file just below the ListBox control. Your ContentPanel grid should now contain the following lines of code:
    <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,30"> <ProgressBar Name="loadingBar" Margin="0,251,0,263" ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required