An Introduction to Windows Phone 7 Development

Post on 06-Jul-2015

239 views 2 download

Transcript of An Introduction to Windows Phone 7 Development

Ken Cenerelli

ken.cenerelli@alvarnet.comkencenerelli.wordpress.com

@KenCenerelli

1. Hello World example Visual Studio 2010 IDE

Choosing a template

Introduction to XAML and C#

Creating a sample Hello World project

Deploying to either the emulator or the device

2. Guelph Open Data app Consuming open XML data

Binding within XAML

Using Bing maps in an app

Here is a list of resources to get you started: Visual Studio 2010 Express is a free copy of the IDE

The Windows Phone SDK can be retrieved from the Windows Phone Dev Center

Get additional components and functionality with the Windows Phone Toolkit

Access help with the Dev Center Forums

Download a free eBook entitled Programming Windows Phone 7 by Charles Petzold

Add a button and a textblock to the design:

Add code to the button click event:

Build the project:

Run the project:

Consumes open data provided by the City of Guelph

Reads XML files and displays the list values

Clicking list value displays item details and allows the user to map the location using Bing Maps

Available as free download on the Windows Phone Marketplace - Guelph Open Data

Page data changes when focus changes:

Retrieve the open data from the website:

Add Microsoft.Phone.Controls.Maps reference

Add the following to the top of your page:

Create a space on your page for the map and add your Bing Maps key:

Stay connected

my friends!

Q & Aken.cenerelli@alvarnet.com @KenCenerelli kencenerelli.wordpress.com

© 2012 Ken Cenerelli