This site contains the source code for the book WinRT by Example.
The New Windows Runtime.
Asynchronous operations explained.
Calling WinRT components from desktop applications.
Shared C# class.
Shared WinRT component.
Example of a Windows Store app.
Windows Store Apps and WinRT Components.
Example managed WinRT component written in C#.
Desktop project using Portable Class Library.
Portable implementation of the MVVM framework.
Silverlight applications using Portable Class Library.
Windows Store app using Portable Class Library.
Example of tests run against Portable Class Library.
Example of Windows Store app using the Hub template.
Example of Windows Store app using the Split template.
Example of using a managed WinRT component from C#.
Sample Windows Store app that illustrates how state management and life cycle work.
Layouts and Controls.
Using animations and the animations library.
Example of creating and using a custom control.
Example of an independent control library that can be used by various Windows Store apps.
Example to illustrate data-binding both through INotifyPropertyChanged and DependencyObject.
Example of using the flyouts control new to Windows 8.1.
Example shows the various layout options and templates.
Example of using templates to customize the look and feel of a control.
Using the Visual State Manager.
Various ways of using the WebView control to display HTML and browser content.
Example of dynamically parsing XAML to use in a Windows Store app.
Data and Content.
How to use the JSON and XML WinRT parsers.
How to build rich text content.
Using the file picker, recently added files, and recently used files.
Querying user libraries and standing up UI using the built-in WinRT helper classes.
Comprehensive app that scrapes web pages and stores them as text and HTML, demonstrates clipboard, compression, local storage, roaming storage, and various other features.
Web Services and Syndication.
Example of using WCF Data Services to access data exposed using the OData protocol.
Example of using HttpClient to interact with a REST service and parse content.
Example of connecting to and displaying results from a SOAP-based web service.
Example of using the WinRT syndication components to connect with an RSS or Atom feed and process the contents.
Tiles and Toasts
Demonstrates the use of push notifications in a Windows Store app.
Examine various tiles and badges that are available, including the identifier and XML.
Example of sending various types of toast notifications.
Connecting to the Cloud
Using LiveConnect to browse resources accessible with a Microsoft account.
Example of using Azure Mobile Services in a Windows Store app.
Security (Authentication, Encrypting, Signing, and LiveConnect)
Using various forms of authentication such as Google and Facebook.
Examples of various forms of encryption using different methods and keys.
Sample app that demonstrates the use of the secure content APIs.
Implementing a cascading list in MVVM.
Using MVVM to write unit tests for an app.
Dispatching to the UI thread from MVVM.
Example of using the view model locator pattern.
Using advanced concepts like long running downloads with progress and cancellation.
Example of iterating HomeGroup resources.
Example to scan network interfaces and adapters and obtain their information.
Example of using the proximity APIs including NFC, Wi-Fi Direct and Bluetooth.
Text-based adventure game used to demonstrate client/server TCP socket connections.
Example that uses background tasks to download a video by Jeff Prosise that covers NFC in detail.
Example of using the message-based and stream-based implementations of WebSockets in WinRT.
Windows Charms Integration
Using the play to example to send multimedia to another device.
Sharing content from an app.
Receiving shared content from another app.
Additional Windows Integration
Set-up for the integration example.
Example of dealing with various forms of input.
Example of reading various device sensors.
Printers and Scanners
Example of how to interact with printers and scanners.
Play audio in the background with descriptive controls.
Example of how to update information on the lock screen.
Background tasks for the lock screen example.
Example of receiving raw notifications in a Windows Store app.
Works with the previous example to send the notifications.
Using the ThreadPool in Windows Store apps.
Using various multimedia features available in WinRT.
Example of writing an accessible app via code and XAML.
Coded UI tests.
Globalization and Localization
Demonstrates various globalization and localization features.
Packaging and Deploying
Example for packing and deploying Windows Store apps.
Debugging and Performance Optimization
Adding logging and tracing to Windows Store apps.
Example app for performance testing.
C++ component for us in the performance examples.
Bonus utilities and classes you can use in your own apps.
Adds fluent assertions to make writing tests more readable.
Provides a logging implementation for Windows Store apps
Fluent library for building tiles, toasts, and updating badges.
Helper methods for building and sending push notifications.
Portable MVVM base library that implements property change and commands.