An Introduction to Windows Phone 7 Development

21
Ken Cenerelli [email protected] kencenerelli.wordpress.com @KenCenerelli

Transcript of An Introduction to Windows Phone 7 Development

Page 1: An Introduction to Windows Phone 7 Development

Ken Cenerelli

[email protected]

@KenCenerelli

Page 2: An Introduction to Windows Phone 7 Development

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

Page 3: An Introduction to Windows Phone 7 Development

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

Page 4: An Introduction to Windows Phone 7 Development
Page 5: An Introduction to Windows Phone 7 Development
Page 6: An Introduction to Windows Phone 7 Development
Page 7: An Introduction to Windows Phone 7 Development
Page 8: An Introduction to Windows Phone 7 Development

Add a button and a textblock to the design:

Page 9: An Introduction to Windows Phone 7 Development

Add code to the button click event:

Page 10: An Introduction to Windows Phone 7 Development

Build the project:

Run the project:

Page 11: An Introduction to Windows Phone 7 Development
Page 12: An Introduction to Windows Phone 7 Development
Page 13: An Introduction to Windows Phone 7 Development

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 14: An Introduction to Windows Phone 7 Development
Page 15: An Introduction to Windows Phone 7 Development
Page 16: An Introduction to Windows Phone 7 Development

Page data changes when focus changes:

Retrieve the open data from the website:

Page 17: An Introduction to Windows Phone 7 Development
Page 18: An Introduction to Windows Phone 7 Development
Page 19: An Introduction to Windows Phone 7 Development

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:

Page 20: An Introduction to Windows Phone 7 Development
Page 21: An Introduction to Windows Phone 7 Development

Stay connected

my friends!

Q & [email protected] @KenCenerelli kencenerelli.wordpress.com

© 2012 Ken Cenerelli