This project has moved. For the latest updates, please go here.
This site contains the source code for the book WinRT by Example.

Chapter 1

The New Windows Runtime.

AsynchronousWinRT

Asynchronous operations explained.

DesktopWinRT

Calling WinRT components from desktop applications.

ExampleCSharpClass

Shared C# class.

ExampleWinRTComponent

Shared WinRT component.

HelloWorldGridApp

Example of a Windows Store app.

Chapter 2

Windows Store Apps and WinRT Components.

MyLibrary

Example managed WinRT component written in C#.

PortableDesktop

Desktop project using Portable Class Library.

PortableMvvm

Portable implementation of the MVVM framework.

PortableSilverlight

Silverlight applications using Portable Class Library.

PortableStore

Windows Store app using Portable Class Library.

PortableTests

Example of tests run against Portable Class Library.

ReferenceHubApp

Example of Windows Store app using the Hub template.

ReferenceSplitApp

Example of Windows Store app using the Split template.

SplitWordsCSharp

Example of using a managed WinRT component from C#.

SplitWordsJavaScript

Example of calling a managed WinRT component from JavaScript.

StateManagementExample

Sample Windows Store app that illustrates how state management and life cycle work.

Chapter 3

Layouts and Controls.

AnimationsExample

Using animations and the animations library.

CustomControlExample

Example of creating and using a custom control.

CustomControlsLibrary

Example of an independent control library that can be used by various Windows Store apps.

DataBindingExample

Example to illustrate data-binding both through INotifyPropertyChanged and DependencyObject.

FlyoutsExample

Example of using the flyouts control new to Windows 8.1.

LayoutsExample

Example shows the various layout options and templates.

TemplatesExample

Example of using templates to customize the look and feel of a control.

VisualStateExample

Using the Visual State Manager.

WebViewExamples

Various ways of using the WebView control to display HTML and browser content.

XamlParsingExample

Example of dynamically parsing XAML to use in a Windows Store app.

Chapter 4

Data and Content.

DataFormatsExample

How to use the JSON and XML WinRT parsers.

DocumentDataExample

How to build rich text content.

FilePickerExample

Using the file picker, recently added files, and recently used files.

QueryPicturesLibrary

Querying user libraries and standing up UI using the built-in WinRT helper classes.

Skrape

Comprehensive app that scrapes web pages and stores them as text and HTML, demonstrates clipboard, compression, local storage, roaming storage, and various other features.

Chapter 5

Web Services and Syndication.

ODataServiceExample

Example of using WCF Data Services to access data exposed using the OData protocol.

RestServiceExample

Example of using HttpClient to interact with a REST service and parse content.

SoapServiceExample

Example of connecting to and displaying results from a SOAP-based web service.

SyndicationExample

Example of using the WinRT syndication components to connect with an RSS or Atom feed and process the contents.

Chapter 6

Tiles and Toasts

PushNotificationExample

Demonstrates the use of push notifications in a Windows Store app.

TileExplorer

Examine various tiles and badges that are available, including the identifier and XML.

Toaster

Example of sending various types of toast notifications.

Chapter 7

Connecting to the Cloud

LiveConnectExample

Using LiveConnect to browse resources accessible with a Microsoft account.

MobileServicesExample

Example of using Azure Mobile Services in a Windows Store app.

Chapter 8

Security (Authentication, Encrypting, Signing, and LiveConnect)

AuthenticationExample

Using various forms of authentication such as Google and Facebook.

EncryptionExample

Examples of various forms of encryption using different methods and keys.

SafeNotes

Sample app that demonstrates the use of the secure content APIs.

Chapter 9

Model-View-ViewModel (MVVM)

CascadingListExample

Implementing a cascading list in MVVM.

EncryptionExampleTests

Using MVVM to write unit tests for an app.

UIThreadExample

Dispatching to the UI thread from MVVM.

ViewModelLocatorExample

Example of using the view model locator pattern.

Chapter 10

Networking

AdvancedHttpExample

Using advanced concepts like long running downloads with progress and cancellation.

HomeGroupExample

Example of iterating HomeGroup resources.

NetworkInfoExample

Example to scan network interfaces and adapters and obtain their information.

ProximityExample

Example of using the proximity APIs including NFC, Wi-Fi Direct and Bluetooth.

SocketsGame

Text-based adventure game used to demonstrate client/server TCP socket connections.

TapAndGoProximityNetworking

Example that uses background tasks to download a video by Jeff Prosise that covers NFC in detail.

WebSocketExamples

Example of using the message-based and stream-based implementations of WebSockets in WinRT.

Chapter 11

Windows Charms Integration

PlayToExample

Using the play to example to send multimedia to another device.

ShareSourceExample

Sharing content from an app.

ShareTargetExample

Receiving shared content from another app.

Chapter 12

Additional Windows Integration

IntegrationExample

Windows integration.

IntegrationExampleLauncher

Set-up for the integration example.

Chapter 13

Devices

InputsExample

Example of dealing with various forms of input.

SensorsExample

Example of reading various device sensors.

Chapter 14

Printers and Scanners

PrintingAndScanningExample

Example of how to interact with printers and scanners.

Chapter 15

Background Tasks

AudioBackgroundExample

Play audio in the background with descriptive controls.

LockScreenExample

Example of how to update information on the lock screen.

LockScreenTasks

Background tasks for the lock screen example.

RawNotificationExample

Example of receiving raw notifications in a Windows Store app.

RawNotificationSender

Works with the previous example to send the notifications.

ThreadPoolExample

Using the ThreadPool in Windows Store apps.

Chapter 16

Multimedia

MultimediaExample

Using various multimedia features available in WinRT.

Chapter 17

Accessibility

AccessibilityExample

Example of writing an accessible app via code and XAML.

AccessibilityTestProject

Coded UI tests.

Chapter 18

Globalization and Localization

GlobalizationExample

Demonstrates various globalization and localization features.

Chapter 19

Packaging and Deploying

PackageAndDeployExample

Example for packing and deploying Windows Store apps.

Chapter 20

Debugging and Performance Optimization

LoggingExample

Adding logging and tracing to Windows Store apps.

PrimeCheckerExample

Example app for performance testing.

WinRtExampleMath

C++ component for us in the performance examples.

Common

Bonus utilities and classes you can use in your own apps.

FluentTestHelper

Adds fluent assertions to make writing tests more readable.

LoggingHelper

Provides a logging implementation for Windows Store apps

NotificationHelper

Fluent library for building tiles, toasts, and updating badges.

PushNotificationHelper

Helper methods for building and sending push notifications.

ViewModelHelper

Portable MVVM base library that implements property change and commands.

Last edited Apr 9, 2014 at 1:43 PM by jeremylikness, version 12

Comments

No comments yet.