Home > Store

Programming the Windows Runtime by Example: A Comprehensive Guide to WinRT with Examples in C# and XAML, Rough Cuts

Rough Cuts

  • Available to Safari Subscribers
  • About Rough Cuts
  • Rough Cuts are manuscripts that are developed but not yet published, available through Safari. Rough Cuts provide you access to the very latest information on a given topic and offer you the opportunity to interact with the author to influence the final publication.

Not for Sale

Description

  • Copyright 2014
  • Dimensions: 7" x 9-1/8"
  • Pages: 816
  • Edition: 1st
  • Rough Cuts
  • ISBN-10: 0-13-343048-0
  • ISBN-13: 978-0-13-343048-6

This is the Rough Cut version of the printed book.

Master Windows 8.1/Windows Runtime Programming Through 80 Expert Projects
This is the most complete, hands-on, solutions-focused guide to programming modern Windows applications with the Windows Runtime.

Leading Windows development consultants Jeremy Likness and John Garland present easy-to-adapt C# and XAML example code for more than 80 projects. Their real-world application examples help you apply Windows 8.1’s best improvements, including large tiles, the new search control, flyouts, command bars, native WinRT networking, and new deployment and sideloading options.

Drawing on their pioneering experience, they illuminate key areas of the Windows Runtime API, offering uniquely detailed coverage of encryption, cloud connectivity, devices, printers, and media integration. You’ll find cutting-edge tips and tricks available in no other book.

This is an indispensable resource for all intermediate-to-advanced Windows developers, and for any architect building desktop, tablet, or mobile solutions with Microsoft technologies. Its focus on both C# and XAML will make it valuable to millions of Windows developers already familiar with Silverlight, WPF, and/or .NET.

Coverage includes
• Creating robust app interfaces with the newest XAML controls, including flyouts and command bars
• Saving data in a persistent “roaming zone” for syncing across Windows 8.1 devices
• Using Visual State Manager (VSM) to build apps that adapt to various device resolutions and orientations
• Integrating virtually any form of data into your apps
• Connecting with web services, RSS, Atom feeds, and social networks
• Securing apps via authentication, encrypting, signing, and single sign-on with Microsoft Account, Facebook, Google, and more
• Leveraging Windows 8.1 media enhancements that improve battery life and app performance
• Networking more effectively with Windows 8.1’s revamped HTTP implementation and new location APIs
• Using Tiles and Toasts to keep apps alive and connected, even when they aren’t running
• Enabling users to send content between devices via NFC tap and send
• Ensuring accessibility and globalizing your apps
• Efficiently debugging, optimizing, packaging, and deploying your apps
• Building sideloadable apps that don’t have to be published in Windows Store

“This book doesn’t just focus on singular concepts, it also provides end-to-end perspective on building an app in WinRT. It is one of those essential tools for Windows developers that will help you complete your software goals sooner than without it!”
—Tim Heuer, Principal Program Manager Lead, XAML Platform, Microsoft Corporation


Sample Content

Table of Contents

Foreword     xix
Preface     xxii

Chapter 1  The New Windows Runtime     1
Windows Runtime Specifics     1
Windows Store Apps     4
   Example: Create a Windows Store App     5
.NET and WinRT    9
   Fundamental Types     9
   Mapped Types     10
   Streams and Buffers     14
Desktop Applications     15
   Example: Reference WinRT from a Desktop Application     15
   Example: Examine Projections in a WinRT Component     20
Asynchronous Functions     24
Summary     27
Chapter 2  Windows Store Apps and WinRT Components     29
Fundamentals of a Windows Store App     30
   Windows Store App Templates     32
   Understanding the App Manifest     45
   Finding Your Package on Disk     52
   Running Your App     54
Application Lifecycle     61
   The Navigation Helper and Suspension Manager     67
Managed WinRT Components    75
   Creating a Managed WinRT Component     76
   Calling Managed WinRT Components from Any Language     78
Summary     79
Chapter 3  Layouts and Controls     81
The Visual Tree    83
Data-Binding     85
   Dependency Properties     91
   Attached Properties    94
   Value Precedence    95
   Property Change Notification    95
Animations    97
   Example: Dynamically Apply Animations to a Control     97
The Visual State Manager    100
   Example: Visual State Manager     101
   Groups     103
   States     105
   Transitions     106
The Visual State Manager Workflow     107
Programmatic Access to Visual States    109
Custom Visual State Managers     109
Styles    111
Templates     112
   Example: Using Templates     112
Layouts     115
   Panel     115
   Border    115
   Canvas     116
   Grid     116
   StackPanel     117
   VirtualizingPanel and VirtualizingStackPanel     118
   WrapGrid    119
   VariableSizedWrapGrid     119
   ContentControl     120
   ItemsControl     121
   ScrollViewer     122
   ViewBox     122
   GridView     123
   ListBox     123
   ListView     124
   FlipView     124
   Example: Using the Viewbox and Various Layouts     125
Controls     130
   Flyouts     133
Custom Controls &nb

Updates

Submit Errata

More Information