Windows Phone 8 Development Internals
Год: 2013
Автор: Andrew Whitechapel, Sean McKenna
Издательство: Microsoft Press
ISBN: 978-0-7356-7623-7
Язык: Английский
Формат: PDF
Качество: Изначально компьютерное (eBook)
Интерактивное оглавление: Да
Количество страниц: 1044
Описание:
Build and optimize Windows Phone 8 apps for performance and securityDrill into Windows Phone 8 design and architecture, and learn best practices for building phone apps for consumers and the enterprise. Written by two senior members of the core Windows Phone Developer Platform team, this hands-on book gets you up to speed on the Windows 8 core features and application model, and shows you how to build apps with managed code in C# and native code in C++. You’ll also learn how to incorporate Windows Phone 8 features such as speech, the Wallet, and in-app purchase.Discover how to:
- Create UIs with unique layouts, controls, and gesture support
- Manage databinding with the Model View ViewModel pattern
- Build apps that target Windows Phone 8 and Windows Phone 7
- Use built-in sensors, including the accelerometer and camera
- Consume web services and connect to social media apps
- Share code across Windows Phone 8 and Windows 8 apps
- Build and deploy company hub apps for the enterprise
- Start developing games using Direct3D
- Test your app and submit it to the Windows Phone Store
Оглавление
Core Features
Chapter 1 : Vision and architecture
A different kind of phone
Windows phone architecture
Building and delivering apps
Getting started with “Hello World”
Summary
Chapter 2 : App model and navigation
The app lifecycle
The page model
Navigation and state
Navigation options
File type and URI associations
Summary
Chapter 3 : UI visuals and touch
Phone UI elements
Working with UserControls vs. custom controls
Re-templating controls
Resources
Implicit styles
Dependency and attached properties
The app bar and notification area
Transient panels
Routed events
Logical touch gestures
Manipulation events
Mouse events
FrameReported events
Keyboard input
Summary
Chapter 4 : Data binding and MVVM
Simple data binding and INotifyPropertyChanged
Data-binding collections
Type/value converters
Element binding
Data validation
Separating concerns
Summary
Chapter 5 : Phone and media services
Launchers and Choosers
Search extensibility
Audio and video APIs
Media playback
Audio input and manipulation
Music and Videos Hub
The Clipboard API
Summary
Chapter 6 : Sensors
Orientation
Phone hardware
Sensor APIs
The accelerometer
Compass
Gyroscope
Motion APIs
Summary
Chapter 7 : Web connectivity
The WebClient and HttpWebRequest classes
The WebBrowser control
Live SDK
Facebook
Twitter
The Data Sense feature
Summary
Chapter 8 : Web services and the cloud
Web services
WCF data services
Web service security
Windows Azure
Summary
Chapter 9 : Background agents
Background tasks
Alarms and reminders
The Background Transfer Service
Generic Background Agents
Background audio
Summary
Chapter 10 : Local storage and databases
Local storage
LINQ-to-SQL
SQLite
Summary
Windows Phone 7 to Windows Phone 8
Chapter 11 : App publication
Preparing for publication
The publication process
Dev Center reports
Updates
Beta testing
Versions
Selective targeting
Summary
Chapter 12 : Profiling and diagnostics
Debugging
Testing
Profiling
Performance best practices
Summary
Chapter 13 : Porting to Windows Phone 8 and multitargeting
Lighting up a Windows Phone 7 App with Windows Phone 8 features
Quirks mode and breaking changes
Managing platform-specific projects
Windows Phone 7.8 SDK
Test coverage for Windows Phone 7.x apps
Summary
Chapter 14 : Tiles and notifications
Tile sizes and templates
Secondary tiles
Push notifications
Push notification server
Push notification client
Registration web service
Additional server features
Additional client features
Push notification security
Summary
Chapter 15 : Contacts and calendar
Contacts
Calendar
Summary
Chapter 16 : Camera and photos
Acquiring a single photo
Working with the media library
Capturing photos
Extending the Photos Hub
Lenses
Sharing photos
Summary
Chapter 17 : Networking and proximity
Sockets
Finding your app on nearby devices
Connecting to other Bluetooth devices
NFC
Summary
Chapter 18 : Location and maps
Architecture
Determining the current location (Windows Phone 7)
Bing maps (Windows Phone 7)
Getting location (Windows Phone 8)
Maps API (Windows Phone 8)
Continuous background execution (Windows Phone 8)
Testing location in the simulator
Location best practices
Summary
New Windows Phone 8 Features
Chapter 19 : Speech
Voice commands
Speech recognition in apps
Text-to-Speech
Putting it together to talk to your apps
Summary
Chapter 20 : The Wallet
Understanding the Wallet
The Wallet object model
Wallet agents
Summary
Chapter 21 : Monetizing your app
Advertising
Trial mode
In-app purchase
Summary
Chapter 22 : Enterprise apps
Windows Phone for business
Managed vs. unmanaged phones
Unmanaged phones
Company Apps
Building a company hub app
Summary
Native Development and Windows Phone 8 convergence
Chapter 23 : Native development
Native code overview
An introduction to modern C++
Managed-native interop
Writing asynchronous code in C++
Using Windows Runtime classes in C++
Win32 API
Component Object Model (COM)
Summary
Chapter 24 : Windows 8 convergence
Windows 8 and Windows Phone 8 compared
Sharing code between Windows and Windows Phone
Summary
Chapter 25 : Games and Direct3D
Direct3D primer
Direct3D differences on Windows Phone
Visual Studio project types
Direct3D and XAML projects
Structure of the basic Direct3D app
Minimal Direct3D app
Touch input
Direct2D and DirectXTK
Summary
Appendix : About the Authors