Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft
-
Upload
gavin-grant -
Category
Documents
-
view
215 -
download
0
description
Transcript of Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft
![Page 1: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/1.jpg)
building Windows Phone applications with Silverlight, part 2
Peter TorrProgram Manager, Microsofthttp://blogs.msdn.com/ptorr
![Page 2: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/2.jpg)
2
fine print
Not “Silverlight 101” Lots of resources on-line to learn Watch Shawn Oster’s talk on-demand
More in-depth information from Istvan Cseri’s talk Tomorrow morning
![Page 3: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/3.jpg)
3
key take-aways
Applications are built using pages
UI is clean and simple
Services enhance the user experience
![Page 4: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/4.jpg)
4
Peter (part 2) Application
structure Controls &
theming Connected
services
Mike (part 1) Introduction Output Input Web Browser OS App Integration
building applications, parts 1 & 2
![Page 5: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/5.jpg)
5
application structure
first, a little history…
![Page 6: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/6.jpg)
6
default silverlight application
Application
UserControl
ContentContent Content
![Page 7: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/7.jpg)
7
silverlight 3 navigation application
UserControl
Frame
Page 3Page 1 Page 2
Application
Application
UserControl
ContentContent Content
![Page 8: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/8.jpg)
8
?Windows Phone application
UserControl
Frame
Page 3Page 1 Page 2
Application
Application
Frame
Page 3Page 1 Page 2
![Page 9: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/9.jpg)
Demo
application structure
![Page 10: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/10.jpg)
the back key
![Page 11: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/11.jpg)
11
back key details
Lets the user to return to previously-viewed screens
Can go back across applications
Not used for application-specific behaviour
![Page 12: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/12.jpg)
Demo
back button(the exception that
makes the rule)
![Page 13: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/13.jpg)
13
a world of constant interruptionsphone calls
App
switchtxt
msgs :-)
reminders
low
batterylock scree
n
![Page 14: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/14.jpg)
14
Not runnin
g
Start
Running
Exit
basic application lifetime
• Obscured• Paused
![Page 15: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/15.jpg)
15
obscured: popup ui from shell
Running
Obscured
Running
Unobscured
Games could auto-pause
Game could auto-resume
• Phone call
• Reminder• Battery
low
Not in the Mix build
![Page 16: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/16.jpg)
16
paused: jump to another app
Running
Pause
Suspended
Resume
Assume your process is killed
Save state for later use
Load state to continue where you left off
Not in the Mix build
User never knows what happened :-)
• Start Button
• Accept call• Open toast
Don’t panic!
• We’ll cover “background processing” soon
• Istvan Cseri’s talk has more detail tomorrow
![Page 17: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/17.jpg)
17
Peter (part 2) Application
structure Controls &
theming Connected
services
Mike (part 1) Introduction Output Input Web Browser OS App Integration
building applications, parts 1 & 2
![Page 18: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/18.jpg)
18
default control templates
Simple and elegant
Over-sized hit targets
Use of transparency
Watch Michael Smuga’s design talk online!
![Page 19: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/19.jpg)
19
theming
Enables user to personalize their phone
Dark and light themes, each with several accent colours
Built-in controls are automatically themed
![Page 20: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/20.jpg)
Demo
case study: <button>
![Page 21: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/21.jpg)
21
available controls
Core controls delivered in-ROM Button CheckBox …
Thinking about future controls releases
Let us know what to focus on first!
![Page 22: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/22.jpg)
22
a note on screen resolution
Single hardware & software platform
Two screen resolutions
Applications must support both
Updated tools will be available before phones hit the market
![Page 23: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/23.jpg)
23
Peter (part 2) Application
structure Controls &
theming Connected
services
Mike (part 1) Introduction Output Input Web Browser OS App Integration
building applications, parts 1 & 2
![Page 24: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/24.jpg)
24
push notifications
Server-initiated communication
Enables key background scenarios
Preserves battery life and user experience
![Page 25: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/25.jpg)
25
New photos online!
Seattle, WA: Sunny and 85 degrees
notification types
1415
![Page 26: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/26.jpg)
26
push notifications
Push client
Push service
Your service
Tile
App
Toast
Send push data to URI
Send push data to
client
Send URI to server
Open push channelReturn URIData to App
Data to toast
Data to tile
Event
![Page 27: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/27.jpg)
Demo
push notifications
![Page 28: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/28.jpg)
28
location services
Smart device + cloud service
Balance accuracy with time & power
Consistent API across platforms
No emulator support
![Page 29: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/29.jpg)
29
location
Location services
WiFi
+ Accuracy- Power- Speed- Indoors
- Accuracy+ Power+ Speed- Wilderness
+/- Accuracy+/- Power+/- Speed+/- Urban areas
GPS
Cell towers
![Page 30: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/30.jpg)
Demo
location services
![Page 31: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/31.jpg)
31
key take-aways
Applications are built using pages
UI is clean and simple
Services enhance the user experience
![Page 32: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/32.jpg)
32
further information
http://blogs.msdn.com/ptorr – My blog
http://developer.windowsphone.com – Downloads!
http://live.visitmix.com – Watch other talks
Seema Ramchandani’s Performance talk (next)
Istvan Cseri’s Architecture talk (tomorrow)
![Page 33: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/33.jpg)
33
call to action
Install the tools…
Start coding…
Give us feedback! What’s good? What’s bad? What’s really painful?
![Page 34: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/34.jpg)
34
helping to shape the future
Research opportunities for Windows Phone developers using Silverlight on Wednesday March 17th (tomorrow)
Usability study @ 11:30 Focus groups @ 10:00, 11:30, 1:00 & 1:30
If you are interested in participating in these events, please email [email protected]
![Page 35: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/35.jpg)
please fill out the session evaluation form – thank you!
![Page 36: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/36.jpg)
it‘s question time…
![Page 37: Building Windows Phone applications with Silverlight, part 2 Peter Torr Program Manager, Microsoft](https://reader035.fdocuments.net/reader035/viewer/2022062905/5a4d1b057f8b9ab059988128/html5/thumbnails/37.jpg)
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.
The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the
date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.