Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Cover
Title
Copyright
Dedication
Contents at a Glance
Contents
About the Authors
About the Technical Reviewer
Acknowledgments
Introduction
Chapter 1: Introducing Windows Phone and the Windows Phone Platform
Windows Phone Overview
Windows Phone Hardware Specifications
Windows Phone Application Platform
Silverlight for Windows Phone
XNA for Windows Phone
Tools
Cloud Services
Metro Design
Application Development Life Cycle
Summary
Chapter 2: Building Windows Phone Applications
Preparing Your Development Machine
Building Your First Windows Phone Application
Creating a Windows Phone Project
Using the Windows Phone Silverlight Controls
Writing the Windows Phone Code
Running the Silverlight Windows Phone Application
Customizing the Windows Phone Application
Styling Your Application
Summary
Chapter 3: Building Windows Phone 7 Applications Using Cloud Services As Data Stores
Introducing the MVVM Pattern
Introducing Microsoft Azure and SQL Azure
Creating a Cloud Database
The Entity Framework
Creating an SQL Azure Database
Creating a Database in SQL Azure
Creating a Cloud Service to Access the Cloud Database
Creating a Windows Azure Project
Generating an Object Model to Access the Cloud Database
Implementing a WCF Service to Access the SQL Azure Database
Building a Phone Client to Access a Cloud Service
Creating a Windows Phone Project
Building the UI
Coding MainPage
Coding BoolToVisibilityConvert
Adding a Reference to NotepadService
Coding NotepadViewModel
Testing the Application Against NotepadService Deployed Locally
Deploying the Service to Windows Azure
Testing the Notepad Application Against the NotepadService Azure Service
Summary
Chapter 4: Catching and Debugging Errors
Debugging Application Exceptions
Debugging Page Load Exceptions
Debugging a Web Service Exception
Testing the Application
Registering a Windows Phone Device for Debugging
Handling Device Exceptions
Creating the CatchDeviceExceptionDemo Project
Building the User Interface
Coding the Application
Testing the Finished Application
Summary
Chapter 5: Packaging, Publishing, and Managing Applications
Windows Phone Application Publishing Life Cycle
Windows Phone Application Certification Requirements
Application Policies
Content Policies
Application Submission Validation Requirements
Application Certification Requirements
Submitting Your First Windows Phone Application to theWindows Phone Marketplace
Packaging the Application
Submitting the Application
Updating Your Application
Finding Your Application in the Marketplace
Summary
Chapter 6: Working with the Accelerometer
Understanding Orientation and Movement
Calculating Distance
Calculating Pitch, Roll, and Yaw
Introducing SDK Support for Accelerometers
Retrieving Accelerometer Data
Creating the CaptureAccelerometerData Project
Building the UI
Coding the Application
Testing the Finished Application
Using Accelerometer Data to Move a Ball
Creating the MoveBall Project
Building the UI
Coding the Application
Testing the Finished Application
Summary
Chapter 7: Application Bar
Introducing the Application Bar
Adding an Application Bar to a Windows Phone Application
Adding Images for Use with Application Bar Buttons
Adding a Global Application Bar Using XAML
Adding a Local Application Bar Using XAML
Adding Menu Items
Adding an Application Bar Using Managed Code
Wiring Up Events to an Application Bar
Adding Glue Code and a Worker Function to the Add Button
Reacting to Add Button Events
Reacting to Save Button Events
Reacting to Menu Events
Adding Event Handlers with XAML
Using the ApplicationBar Class to Glue XAML and Managed Code
Summary
Chapter 8: The WebBrowser Control
Introducing the WebBrowser Control
Adding a WebBrowser Control
Using a WebBrowser Control to Display Web Content
Using a WebBrowser Control to Display Local HTML Content
Using a WebBrowser Control to Display Dynamic Content
Saving Web Pages Locally
Choosing Display and Security Settings
Viewport
CSS
Security
A Brief Introduction to HTML5 Features
HTML5 Features
Testing HTML5 Features on Windows Phone
Summary
Chapter 9: Working with Controls and Themes
Introducing the Metro Design System
Windows Phone Chrome
Screen Orientations
Themes on Windows Phone Devices
Applying a Theme
Changing the Theme
Detecting the Currently Selected Theme
Panorama and Pivot Controls
Using the Panorama Control
Using the Pivot Control
Understanding Frame and Page Navigation
Creating a UI for the NavigationTest Project
Adding Navigation Code
Adding Code to Pass Parameters Between Pages
Adding Transition Effects
Creating a UI
Downloading TiltEffect.cs and Applying Dependency Properties
Summary
Chapter 10: Integrating Applications with the Windows Phone OS
Introducing Windows Phone Launchers and Choosers
Launchers
Choosers
Working with Launchers and Choosers
Creating the User Interface
Coding Application Logic
Working with the Windows Phone Application Life Cycle
Observing Application Life Cycle Events
Managing Application State
Best Practices for Managing the Application Life Cycle on the Windows Phone OS
Integrating with Facebook
A Few Words about OAuth
Integrating into Windows Phone Hubs
Integrating Your Application with the Music and Video Hub
Integration with SharePoint
Summary
Chapter 11: Creating Trial Applications
Understanding Trial and Full Modes
Using the IsTrial Method
Using the Marketplace APIs
Building a Trial Application
Building the UI
Connecting to a Web Service
Adding Page-to-Page Navigation
Verifying Trial and Full Modes
Adding the Finishing Touches
Summary
Chapter 12: Internationalization
Understanding Internationalization
Using Culture Settings with ToString to Display Dates, Times, and Text
Using the .NET Culture Hierarchy to Ensure Culture Neutrality
Storing and Retrieving Current Culture Settings
Using Resource Files to Localize Content
Localizing the Application Title and Tile
Creating an Application Resource File
Using Resource DLL from the Windows Phone Project
Creating Culture-Specific Resource DLLs
Summary
Chapter 13: Isolated Storage
Working with Isolated Directory Storage
Creating the IsolatedStorageStoreImageDemo Project
Coding the UI
Coding the Application
Working with Isolated Storage Settings
Creating a New Project
Building the Application UI (XAML)
Coding Application Behavior (C#)
Summary
Chapter 14: Using Location Services
Understanding Windows Phone Location
Services Architecture
Introducing the Windows Phone Location Service
and Mapping APIs
Simulating the Location Service
Creating the GeoCoordinateWatcherDemo Project
Coding the UI
Coding the Application
Testing the Finished Application
Using GeoCoordinateWatcher and the Bing Maps Control to Track Your Movements
Registering with the Bing Maps Service Portal and Installing the Bing Maps SDK
Creating the BingMapDemo Project
Coding the UI
Coding the Application
Testing the Finished Application
Plotting an Address on a Bing Maps Map and Working with the Bing Maps Service
Creating the AddressPlottingDemo Application
Adding a Service Reference to the Bing Maps GeoCodeService
Coding the UI
Coding the Application
Testing the Finished Application
Summary
Chapter 15: Media
Introducing MediaElement
Working with Video
Creating the MediaPlayerDemo Project
Building the UI
Coding the Application
Adding Sounds to an Application
Creating the RobotSoundDemo Project
Building the UI
Coding the Application
Summary
Chapter 16: Working with the Camera and Photos
Introducing Windows Phone Photo Features
Using a Chooser to Take Photos
Using a Chooser to Open Photos
Saving Photos to the Phone
Integrating Your Application with Windows Phone
Using the Apps Link to Launch an Application
Using Share to Upload PhotoCapture Snapshots to TwitPic
Manipulating Live Photo Feeds
Summary
Chapter 17: Push Notifications
Understanding Push Notifications
Toast Notifications
Tile Notifications
Raw Notifications
Introducing the Push Notifications Architecture
The Life Cycle of a Notification
The Push Notification Framework
Implementing Toast Notifications
Creating a Client Application
Creating an Application to Send Notifications
Implementing Tile Notifications
Creating a Client Application
Creating an Application to Send Notifications
Implementing Raw Notifications
Creating a Client Application
Creating an Application to Send Notifications
Testing Delivery of Raw Notifications
Implementing a Cloud Service to Track Push Notifications
Creating a WCF Service to Track Notification Recipients
Modifying the Client to Call the WCF Service
Verifying Automated Push Notification Subscriber Tracking
Using Push Notifications in the Real World
Setting Up Secure Web Services for Push Notifications
Summary
Chapter 18: Reactive Extensions for .NET
Introducing Reactive Programming
Rx.NET Subscription Pipeline
Implementing the Observer Pattern with Rx.NET
Creating a Windows Phone Project
Adding Code to Create and Read Observable Collections
Using Rx.NET Event Handling to Search for Flickr Photographs
Creating a Windows Phone Project
Adding a User Interface
Adding Logic to Search Flickr for Images
Enhancing a Flickr Search with Throttling
Adding an Animation that Plays as Flickr Images Load
Rx.NET Design Guidelines
Consider Drawing a Marble Diagram
Consider Passing a Specific Scheduler to Concurrency-Introducing Operators
Using Rx.NET with Web Services to Retrieve Weather Data Asynchronously
Creating a Windows Phone Project
Creating a User Interface
Adding Logic to Get Weather Information
Handling Errors in Rx.NET
Handling Data-Connection Issues with Rx.NET
Revising WeatherRx to Manage Slow Data Connections
Handling Multiple Concurrent Requests with Rx.NET
Summary
Chapter 19: Security
Understanding Application Security
The Windows Phone Marketplace
Submitting an Application to the Windows Phone Marketplace
Sandboxed Execution and the Execution Manager
Private Application Distribution Options
Implementing Network Security
Securing Connections with SSL
Testing and Opening an SSL Connection
Creating a Self-Signed Certificate
Exporting a Self-Signed Certificate
Installing a Self-Signed Certificate on Windows Phone
Implementing Data Security
Using HMACSHA1 and HMACHSHA256
Using Rfc2898DeriveBytes and AES to Encrypt Data
Information Rights Management
Understanding Device Physical Security
Meeting Certification Requirements
Applications Must Implement MSIL Code
Applications Must Not Implement Any Security-Critical Code
Capability List
Obfuscating Your Application Code
Summary
Index
← Prev
Back
Next →
← Prev
Back
Next →