Book Image

Windows Phone 7.5: Building Location-aware Applications

Book Image

Windows Phone 7.5: Building Location-aware Applications

Overview of this book

Windows Phone 7.5 has met with some great initial reviews from all mobile critics. It is poised to be the '3rd' eco-system for mobile, joining Apple's iOS and Google's Android platform. With Microsoft and Nokia working on multiple devices based on Windows Phone, the platform is a no-brainer enterprise success. Microsoft Office, Email, Skype and a fresh new mobile operating system has been a great champion of a cause for both Microsoft and Nokia. "Windows Phone 7.5: Building Location-aware Applications" will teach you to divein to the new Windows Phone Experience. No more 600 page bibles - just the right mix of text and lots of code to get you started!"Windows Phone 7.5: Building Location-aware Applications" covers location based services and maps, and focuses on methods of location detection and maps. Powered with this information, two real-world applications are covered. In short, this is a concise book on building location aware apps for Windows Phone.
Table of Contents (11 chapters)
Windows Phone 7.5: Building Location-aware Applications
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

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. 1. Create a new Silverlight for Windows Phone project and Name it HelloEvents-Maps.

  2. 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. 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"
    IsIndeterminate="true"></ProgressBar>
    <ListBox Height="555" HorizontalAlignment="Left"
    Margin="2,6,0,0" Name="myEventsList"VerticalAlignment="Top"
    Width="448"></ListBox>
    <Button Content...