Book description
Delve inside the Windows Runtime - and learn best ways to design and build Windows Store apps. Guided by Jeffrey Richter, a recognized expert in Windows and .NET programming, along with principal Windows consultant Maarten van de Bospoort, you'll master essential concepts. And you'll gain practical insights and tips for how to architect, design, optimize, and debug your apps.
With this book, you will:
Learn how to consume Windows Runtime APIs from C#
Understand the principles of architecting Windows Store apps
See how to build, deploy, and secure app packages
Understand how apps are activated and the process model controlling their execution
Study the rich features available when working with files and folders
Explore how to transfer, compress, and encrypt data via streams
Design apps that give the illusion of running using live tiles, background transfers, and background tasks
Share data between apps using the clipboard and the Share charm
Get advice for monetizing your apps through the Windows Store
About This Book
Requires working knowledge of Microsoft .NET Framework, C#, and the Visual Studio IDE
Targeted to programmers building Windows Store apps
Some chapters also useful to those building desktop apps
Technologies Covered
Windows 8.1
Microsoft Visual Studio 2013
Table of contents
- Windows Runtime via C#
- Dedication
- Foreword
- Introduction
-
I. Core concepts
- 1. Windows Runtime primer
- 2. App packaging and deployment
- 3. Process model
-
II. Core Windows facilities
- 4. Package data and roaming
- 5. Storage files and folders
-
6. Stream input and output
- Simple file I/O
- The streams object model
- Interoperating between WinRT streams and .NET streams
- Transferring byte buffers
- Writing and reading primitive data types
- Performing transacted write operations
- Polite reader data access
- Compressing and decompressing data
- Encrypting and decrypting data
- Populating a stream on demand
- Searching over a stream’s content
-
7. Networking
- Network information
- Network isolation
- Network connection profile information
- Background transfer
- HttpClient: Client-side HTTP(S) communication
-
Windows Runtime sockets
- Socket addressing
- StreamSocket: Client-side TCP communication
- StreamSocketListener: Server-side TCP communication
- StreamWebSocket: Streaming client-side WebSocket communication
- MessageWebSocket: Messaging client-side WebSocket communication
- DatagramSocket: Peer-to-peer UDP communication
- DatagramSocket: Multicast UDP communication
- Encrypting data traversing the network with certificates
- 8. Tile and toast notifications
-
9. Background tasks
- Background task architecture
- Step 1: Implement your background task’s code
- Step 2: Decide what triggers your background task’s code
- Step 3: Add manifest declarations
- Step 4: Register your app’s background tasks
- Debugging background tasks
- Background task resource quotas
- Deploying a new version of your app
- Background task progress and completion
- Background task cancellation
- 10. Sharing data between apps
- 11. Windows Store
- A. App containers
- B. About the authors
- Index
- About the Authors
- Copyright
Product information
- Title: Windows Runtime via C#
- Author(s):
- Release date: November 2013
- Publisher(s): Microsoft Press
- ISBN: 9780735679269
You might also like
book
Windows Forms 2.0 Programming
“Some books are different-the content can't be Googled from the Internet, the authors have real-life experiences …
video
Using Interfaces in C#
In this Using Interfaces in C# training course, expert author Rod Stephens will teach you how …
book
High-Performance Windows Store Apps
Understand what every developer should know about performance when building Windows Store apps. Not designed as …
book
Pro C# 7: With .NET and .NET Core
This essential classic title provides a comprehensive foundation in the C# programming language and the frameworks …