EARTH WEEK
Go paperless and save 40% on eligible eBooks, 70% on video now through April 26. Shop the sale.
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.
This is the Rough Cut version of the printed book.
Master Windows 8.1/Windows Runtime Programming Through 80 Expert Projects 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