Special thanks to Daniel Egan. This presentation provides a deeper dive into Windows Phone 7 for developers. Topics cover how you navigate in your applicaton, how to access Web Services, use JSON to move data, and how to push notifications.
4. Phone Application Frame Frame Contains Page Control and other elements Page fills the entire content region of the frame and contains the content
5. Phone Application Page A page fills the entire content region of the frame. It includes the following characteristics: Optionally surfaces its own application bar There are three main ways to navigate between pages in your app: Using the PhoneApplicationPagevirtual methods for handling the result of navigation. HyperlinkButton- it provides NavigateUriproperty which can be used to navigate to a page Uri. NavigationService- it provides methods, properties, and events to support navigation within a wp7 application. Note: The PhoneApplicationPage class supports OnNavigatedTo, OnNavigatedFrom and OnNavigatingFrom virtual methods for handling the result of navigation:
13. Classic Development Forward Looking Web + Services Application + Services Application – Oriented around one device (1 Screen) Oriented around multiple devices (x Screens) Shifting Development Strategies
14. Networking for Windows Phone Support for networking features: WCF HttpWebRequest WebClient No cross-domain policy file required ODATA Not Supported Sockets Custom WCF Bindings (no duplex) WCF RIA Services NTLM authentication
17. Restful Web Services Use WCF Restful Services On Premise As a Azure WebRole Data On premise In Cloud Retrieve Lightweight rest services XML JSON 14
18. Using ODATA From WCF From SQL Azure From publishers – http://odata.org Odata Client Library for WP7 15
19. You Decide Simple Test Case : Downloaded 8 data records Each Record had just four fields Measured bytes to transfer: Odata version from WCF Data Services 8.5k ASMX SOAP + Dataset - 3k REST + XML - 1.2k REST + JSON – 639bytes 16
27. Push Notification Service Your Web Service Custom Web Service Windows Phone Notification Service Existing Web Services Microsoft Services Microsoft.Phone.Notification Push client service Built-in support for efficient, battery-aware mobile push notifications Managed APIs for notification-driven interaction with existing Web 2.0 sites
28. PUSH NOTIFICATIONS: DATA FLOW Push client Tile Toast Open push channel Return URI Data to toast Data to tile Data to App App Send URI to server Send push data to client Push service Your service Event Send push data to URI