Table of Contents

Preface

Part I Windows Phone App Development Fundamentals

1 Introduction to Windows Phone App Development

Installing the Windows Phone SDK

Comparing XNA and Silverlight

Creating Your First Silverlight for Windows Phone App

Creating a First Windows Phone XNA App

Summary

2 Fundamental Concepts in Silverlight Development for Windows Phone

Understanding the Role of XAP Files

The Windows Phone Capabilities Model

The Threading Model for Silverlight Graphics and Animation in Windows Phone

Understanding the Frame Rate Counter

The Windows Phone Performance Analysis Tool

Device Status

Applying the Model-View-ViewModel Pattern to a Windows Phone App

Property Change Notification

Using Commands

Argument Validation

A Platform Agnostic Dialog Service

Summary

3 Application Execution Model

Exploring the Execution Model

Running Under the Lock Screen

Page Navigation

Walking Through the Bookshop Sample Application

Summary

4 Page Orientation

Orientation and the PhoneApplicationPage Class

Silverlight Toolkit Animated Page Transitions

Summary

Part II Essential Elements

5 Content Controls, Items Controls, and Range Controls

Control Type Taxonomy

Content Controls

Buttons

Items Controls

Range Controls

Summary

6 Text Elements

Text Element Types

TextBlock

Font Properties

Built-In Fonts

Font Embedding

TextBox

PasswordBox

RichTextBox

Clipboard

Summary

7 Media and Web Elements

Displaying Images with the Image Element

Providing a Drawing Surface with the InkPresenter Element

Playing Audio and Video with the MediaElement

Viewing High-Resolution Images with the MultiScaleImage Element

Displaying Web Content with the WebBrowser Element

Summary

8 Taming the Application Bar

Exploring the Built-In Application Bar

Introducing the Custom AppBar

Summary

9 Silverlight Toolkit Controls

Getting Started with the Toolkit

ListPicker

AutoCompleteBox

ContextMenu

DatePicker and TimePicker

LoopingSelector

LongListSelector

PerformanceProgressBar

TiltEffect

ToggleSwitch

WrapPanel

Summary

10 Pivot and Panorama

Pivot and Panorama Differences and Similarities

Pivot and Panorama Placement in the FCL

Using the Pivot Control

Using the Panorama Control

Things to Avoid When Using the Panorama and Pivot

Silverlight Toolkit Lockable Pivot

Summary

Part III Windows Phone App Development

11 Touch

Handling Touch with Mouse Events

Touch and TouchPoint Classes

Manipulation Events

UIElement Touch Gesture Events

Silverlight Toolkit Gestures

Designing Touch Friendly User Interfaces

Summary

12 Launchers and Choosers

API Overview

Choosers and the Application Execution Model

Launchers and Choosers in Detail

Contacts and Appointments

Summary

13 Push Notification

Push Notification Types

Benefits of Push Notification

Understanding Push Notification

Getting Started with Push Notification

Subscribing to Push Notification

Power Management and Push Notification

Sending Push Notifications

Toast Notifications

Tile Notifications

Raw Notifications

Identifying Notifications in an HttpWebResponse

Notification Classes

Cloud Service Authentication

Building a Stock Ticker Application

Summary

14 Sensors

Sensors Overview

Measuring Force with the Accelerometer

Measuring Direction with the Compass

Sensing Rotation with the Gyroscope

Improving Sensor Accuracy with the Motion Sensor

Summary

15 Geographic Location

Location Sensing Technologies

Geographic Location Architecture

Getting Started with Location

Testing Apps That Use the GeoCoordinateWatcher

Code Driven Location Simulation

A Walkthrough of the Position Viewer Sample

Sampling the PositionChanged Event with Rx

Summary

16 Bing Maps

Getting Started with Bing Maps

Sample Code Overview

Location Tracking

Pushpins

Route Calculation Using Bing Maps SOAP Services

Summary

17 Internationalization

Terminology

Localizability Using Resx Files

Dynamic Localizability—Updating the UI When the Culture Changes

Localizing Images Using Resx Files

The Resx Localizability Sample

Summary

18 Extending the Windows Phone Picture Viewer

Debugging Apps That Rely on the Pictures Hub

Creating a Photos Extras Application

Share Menu Extensibility

Using the Windows Phone Connect Tool

Summary

19 Camera

PhotoCamera

Using the Silverlight Webcam API

Summary

20 Incorporating XNA Graphics in Silverlight

Supporting Components

Displaying a 3D XNA Model in a Hybrid App

Summary

21 Microphone and FM Radio

Recording Audio with the Microphone

Controlling the Phone’s FM Radio

Summary

22 Unit Testing

Automated Testing

Introduction to the Windows Phone Unit Test Framework

Creating a Test Project

Creating a Test Class

Tag Expressions

Metadata and Assertions

A Testable Chat Client

Inversion of Control (IoC)

Testing Trial Conditions

Testing with Launchers and Choosers

Summary

Part IV Building Windows Phone Data Driven Applications

23 Input Validation

Defining Input Validation

Input Validation Using Property Setters

Defining Validation Visual States in Silverlight for Windows Phone

Asynchronous and Composite Validation

Summary

24 Network Services

Network Service Technologies

Monitoring Network Connectivity

Introduction to OData

Consuming OData

Using an OData Proxy

Building an eBay OData Consumer Application

Fetching Data When the User Scrolls to the End of a List

Summary

25 Isolated Storage and State Preservation

Understanding Isolated Storage

Abstracting IsolatedStorageSettings

Building an Automatic State Preservation System

Summary

26 Local Databases

SQL Server Compact

Deployment of Local Databases

LINQ to SQL on the Phone

LINQ to SQL Platform Differences

Getting Started with Local Databases

Sample Twitter Timeline Viewer

Viewing a Local Database Schema

Database-First Using SqlMetal

Deploying a Database to Isolated Storage

Abstracting the Navigation Service

Observing LINQ to SQL Queries with a Custom Log

Updating a Database Schema

Mapping an Inheritance Hierarchy

Concurrency

Summary

Part V Multitasking

27 Scheduled Actions

Background Tasks

Scheduled Notifications

Scheduled Tasks

Using a Mutex to Access Common Resources Safely

Summary

28 Background File Transfers

Background Transfer Requests

Background File Transfer Sample Code

Summary

29 Background Audio

Background Agent Recap

Background Audio Overview

Background Audio Player

Representing Audio Files with the AudioTrack Class

Creating a Custom Audio Player Agent

AudioPlayerAgent Sample

Audio Streaming Agents

Summary

Bibliography

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.145.17.46