0% found this document useful (0 votes)
22 views112 pages

(Ebook) Beginning Windows 8 Application Development by István Novák, Zoltan Arvai, György Balássy, David Fulop ISBN 9781118012680, 1118012682 Available Full Chapters

Educational material: (Ebook) Beginning Windows 8 Application Development by István Novák, Zoltan Arvai, György Balássy, David Fulop ISBN 9781118012680, 1118012682 Available Instantly. Comprehensive study guide with detailed analysis, academic insights, and professional content for educational purposes.

Uploaded by

xfoiyyghi2058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views112 pages

(Ebook) Beginning Windows 8 Application Development by István Novák, Zoltan Arvai, György Balássy, David Fulop ISBN 9781118012680, 1118012682 Available Full Chapters

Educational material: (Ebook) Beginning Windows 8 Application Development by István Novák, Zoltan Arvai, György Balássy, David Fulop ISBN 9781118012680, 1118012682 Available Instantly. Comprehensive study guide with detailed analysis, academic insights, and professional content for educational purposes.

Uploaded by

xfoiyyghi2058
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 112

(Ebook) Beginning Windows 8 Application Development by

István Novák, Zoltan Arvai, György Balássy, David Fulop


ISBN 9781118012680, 1118012682 Pdf Download

https://ebooknice.com/product/beginning-windows-8-application-
development-4164542

★★★★★
4.7 out of 5.0 (43 reviews )

DOWNLOAD PDF

ebooknice.com
(Ebook) Beginning Windows 8 Application Development by
István Novák, Zoltan Arvai, György Balássy, David Fulop ISBN
9781118012680, 1118012682 Pdf Download

EBOOK

Available Formats

■ PDF eBook Study Guide Ebook

EXCLUSIVE 2025 EDUCATIONAL COLLECTION - LIMITED TIME

INSTANT DOWNLOAD VIEW LIBRARY


Here are some recommended products that we believe you will be
interested in. You can click the link to download.

(Ebook) Biota Grow 2C gather 2C cook by Loucas, Jason; Viles, James


ISBN 9781459699816, 9781743365571, 9781925268492, 1459699815,
1743365578, 1925268497

https://ebooknice.com/product/biota-grow-2c-gather-2c-cook-6661374

(Ebook) Starting Out: The c3 Sicilian by John Emms ISBN 9781857445701,


1857445708

https://ebooknice.com/product/starting-out-the-c3-sicilian-2581338

(Ebook) Chess Explained: The c3 Sicilian by Sam Collins ISBN


9781904600718, 1904600719

https://ebooknice.com/product/chess-explained-the-c3-sicilian-53477714

(Ebook) Starting Out: The c3 Sicilian by John Emms ISBN 9781857445701,


1857445708

https://ebooknice.com/product/starting-out-the-c3-sicilian-53477760
(Ebook) Matematik 5000+ Kurs 2c Lärobok by Lena Alfredsson, Hans
Heikne, Sanna Bodemyr ISBN 9789127456600, 9127456609

https://ebooknice.com/product/matematik-5000-kurs-2c-larobok-23848312

(Ebook) SAT II Success MATH 1C and 2C 2002 (Peterson's SAT II Success)


by Peterson's ISBN 9780768906677, 0768906679

https://ebooknice.com/product/sat-ii-success-
math-1c-and-2c-2002-peterson-s-sat-ii-success-1722018

(Ebook) The Anti-Alapin Gambit: Death to the 2.c3 Sicilian by Cyrus


Lakdawala, Carsten Hansen ISBN 9788793812376, 879381237X

https://ebooknice.com/product/the-anti-alapin-gambit-death-to-
the-2-c3-sicilian-48509478

(Ebook) Master SAT II Math 1c and 2c 4th ed (Arco Master the SAT
Subject Test: Math Levels 1 & 2) by Arco ISBN 9780768923049,
0768923042

https://ebooknice.com/product/master-sat-ii-math-1c-and-2c-4th-ed-
arco-master-the-sat-subject-test-math-levels-1-2-2326094

(Ebook) Fighting the Anti-Sicilians: Combating 2 c3, the Closed, the


Morra Gambit and other tricky ideas (Everyman Chess) by Richard
Palliser ISBN 9781857445206, 1857445201

https://ebooknice.com/product/fighting-the-anti-sicilians-
combating-2-c3-the-closed-the-morra-gambit-and-other-tricky-ideas-
everyman-chess-2209372
BEGINNING

Windows 8 Application Development


®

István Novák
György Balássy
Zoltán Arvai
Dávid Fülöp
Beginning Windows® 8 Application Development
Published by
John Wiley & Sons, Inc.
10475 Crosspoint Boulevard
Indianapolis, IN 46256
www.wiley.com
Copyright © 2012 by John Wiley & Sons, Inc., Indianapolis, Indiana

Published simultaneously in Canada

ISBN: 978-1-118-01268-0
ISBN: 978-1-118-22183-9 (ebk)
ISBN: 978-1-118-23562-1 (ebk)
ISBN: 978-1-118-26050-0 (ebk)

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, scanning or otherwise, except as permitted under Sections 107 or 108
of the 1976 United States Copyright Act, without either the prior written permission of the Publisher, or authorization
through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222 Rosewood Drive, Danvers,
MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to the Publisher for permission should be addressed to the
Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011, fax (201) 748-
6008, or online at http://www.wiley.com/go/permissions.

Limit of Liability/Disclaimer of Warranty: The publisher and the author make no representations or warranties with
respect to the accuracy or completeness of the contents of this work and specifically disclaim all warranties, including
without limitation warranties of fitness for a particular purpose. No warranty may be created or extended by sales or pro-
motional materials. The advice and strategies contained herein may not be suitable for every situation. This work is sold
with the understanding that the publisher is not engaged in rendering legal, accounting, or other professional services.
If professional assistance is required, the services of a competent professional person should be sought. Neither the pub-
lisher nor the author shall be liable for damages arising herefrom. The fact that an organization or Web site is referred to
in this work as a citation and/or a potential source of further information does not mean that the author or the publisher
endorses the information the organization or Web site may provide or recommendations it may make. Further, readers
should be aware that Internet Web sites listed in this work may have changed or disappeared between when this work was
written and when it is read.

For general information on our other products and services please contact our Customer Care Department within the
United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

Wiley publishes in a variety of print and electronic formats and by print-on-demand. Some material included with standard
print versions of this book may not be included in e-books or in print-on-demand. If this book refers to media such as a CD
or DVD that is not included in the version you purchased, you may download this material at http://booksupport
.wiley.com. For more information about Wiley products, visit www.wiley.com.
Library of Congress Control Number: 2012943021

Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Wrox Programmer to Programmer, and related trade dress are
trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates, in the United States and other coun-
tries, and may not be used without written permission. Windows is a registered trademark of Microsoft Corporation. All
other trademarks are the property of their respective owners. John Wiley & Sons, Inc., is not associated with any product
or vendor mentioned in this book.
To Henriett, Eszter, and Réka. Thank you for your
love and support.

—István Novák

To Adrienn. Thank you for being so supportive and


for always standing behind me.

—Zoltán Arvai

To all my friends and family who endured while I was


writing the umpteenth “last” paragraph for the day—
at 10 p.m….on our holiday.

—Dávid Fülöp
CREDITS

Acquisitions Editor Vice President and Executive Group


Mary James Publisher
Richard Swadley
Project Editor
Kevin Shafer Vice President and Executive Publisher
Neil Edde
Technical Editor
Alex Golesh Associate Publisher
Jim Minatel
Production Editor
Kathleen Wisor Project Coordinator, Cover
Katie Crocker
Copy Editor
Kim Cofer Compositor
Jeff Lytle, Happenstance Type-O-Rama
Editorial Manager
Mary Beth Wakefield Proofreaders
Jennifer Bennet, Word One
Freelancer Editorial Manager Sarah Kaikini, Word One
Rosemarie Graham Louise Watson, Word One

Associate Director of Marketing Indexer


David Mayhew Johnna VanHoose Dinse

Marketing Manager Cover Designer


Ashley Zurcher Ryan Sneed

Business Manager Cover Image


Amy Knies © Donall O Cleirigh/iStockPhoto

Production Manager
Tim Tate
ABOUT THE AUTHORS

ISTVÁN NOVÁK is an associate and the chief technology consultant of SoftwArt, a small Hungarian
IT consulting company. He works as a software architect and community evangelist. In the last 20
years, he participated in more than 50 enterprise software development projects. In 2002, he co-
authored the first Hungarian book about .NET development. In 2007, he was awarded with the
Microsoft Most Valuable Professional (MVP) title, and in 2011 he became a Microsoft Regional
Director. As the main author, he contributed in writing the Visual Studio 2010 and .NET 4 Six-In-
One book (Indianapolis: Wiley, 2010), and he is the author of Beginning Visual Studio LightSwitch
Development (Indianapolis: Wiley, 2011). He holds master’s degree from the Technical University of
Budapest, Hungary, and also has a doctoral degree in software technology. He lives in Dunakeszi,
Hungary, with his wife and two teenage daughters. He is a passionate scuba diver. You may have a
good chance of meeting him underwater at the Red Sea in any season of the year.

GYÖRGY BALÁSSY teaches web development as a lecturer at the Budapest University of Technology and
Economics. He is a founding member of the local MSDN Competence Center (MSDNCC), having an
important role in evangelizing the .NET platform as a speaker, book author, and consultant. Balássy
provided leadership in the foundation of the Hungarian .NET community as a key evangelist on
Microsoft events, technical forums, and as the head of the Portal Technology Group in the MSDNCC.
He is a regular speaker on academic and industrial events, presenting in-depth technical sessions on
.NET, ASP.NET, Office development, and ethical hacking, with which he won the Best Speaker and
the Most Valuable Professional awards in SharePoint, ASP.NET, and IIS multiple times. He was also
selected to be a member of the ASPInsiders group. Since 2005, Balássy has been the Microsoft Regional
Director in Hungary. You can visit his blog at http://gyorgybalassy.wordpress.com or reach him
at [email protected].

ZOLTÁN ARVAI is a software engineer specializing in client application development and front-end
architectures. He’s very passionate about user experience and next-generation user interfaces. He’s
been a freelancer the last seven years, working on several .NET projects, mainly in the enterprise
software development world. Arvai was honored with the Microsoft Most Valuable Professional
(MVP) award in 2009, and has been recognized three times as a Silverlight MVP. He is a frequent
speaker at local Microsoft events. Arvai has co-authored Hungarian books about Silverlight 4.0 and
Windows Phone 7.5. He lives in Budapest, Hungary, where he enjoys playing jazz on his old piano,
and is a big fan of meeting different cultures all over the world.

DÁVID FÜLÖP is a Hungarian software developer who spent the past decade building .NET and,
later, Silverlight applications. Apart from writing code and writing books about writing code, he’s
been a freelance software development trainer teaching developers of various companies, and giv-
ing lectures to college students at the University of Óbuda. Also, he’s a recurring presenter at local
Microsoft-related developer events. In his free time, he does karate, plays online, and furiously tries
to learn the Klingon language.
ABOUT THE TECHNICAL EDITOR

ALEX GOLESH is a Chief Technology Officer (CTO) at Sela (located in Seattle). He is an international
expert who specializes in Windows 8, Windows Phone, XNA, Silverlight, and Windows Presentation
Foundation (WPF). Golesh is currently consulting for various enterprises worldwide, architecting and
developing Windows 8, Windows Phone, Rich Internet Applications (RIA), and Smart Client solu-
tions. He has been developing training samples and courses for various product groups at Microsoft
(in Redmond, WA). He conducts lectures and workshops, and leads projects worldwide in the fields
of Windows 8, Windows Phone, RIA, and Smart Client. He has conducted Windows Phone 7, WPF,
and Silverlight trainings in Israel, India, Sweden, and Poland as a part of the Microsoft Early Adoption
Program. He has received recognition as a Microsoft Most Valuable Professional (MVP) for four years
in a row.
ACKNOWLEDGMENTS

WRITING THIS BOOK WAS A GREAT ADVENTURE! Just a few weeks after I had completed my previous
book, Paul Reese called and asked me to participate in a book about Windows 8. I did not hesitate,
and immediately said “yes.” I’m happy that Paul took a chance on me again, and hope he’ll be con-
tent with the result.
This book wouldn’t have been completed on time without Kevin Shafer and Mary E. James. Kevin
not only did amazing editorial work, but also undertook the burdens of adjusting the book again
and again as Microsoft changed the terminology of Windows 8. Mary always kept the book on
the right track, and encouraged us when we had to revise previously completed chapters because of
breaking changes in a new release of Windows 8.
I’d also like to thank Kim Cofer for thoroughly reading the manuscript, removing ambiguities, and
translating complex paragraphs to simple and tangle-free sentences. Alex Golesh not only reviewed
the book from technical point of view, but also suggested great ideas to make the exercises in this
book easier to follow and understand. I’m very grateful for his help.
I would not have been able to create this book without such a great authoring team. So, I’d like to
thank György, Zoltán, and Dávid for adding their hearts and souls to this adventure. It was great to
work with you!
Finally, I owe many kisses to my wife and daughters for letting me spend so many hours in my
study, working on this book. I’ll keep my promise, and we’ll spend the remaining weekends of this
summer together.

—István Novák

WRITING THIS BOOK WAS REALLY DIFFICULT, but definitely one of the most exciting tasks I’ve ever
completed. Windows 8 is so exciting, and there is so much to tell and write about the possibilities
and brilliant technological solutions that it seemed almost impossible to fit all this information into
a single book.
I would have never succeeded without the help of István Novák, Kevin Shafer, and Mary E. James.
Thank you for leading me on the right path with my chapters to make this book as awesome as it
has turned out to be.
I’d also like to thank György and Dávid for contributing to this book, and putting all the hard work
into this project. It was really great and fun to work with you guys!
I’d also like to thank Kim Cofer and Alex Golesh, who thoroughly read my chapters and made sure
that the silly mistakes I made would never see the sunlight. Thank you for all your suggestions and
your hard work.
I’m very grateful for the chance to work on this project. It was a real adventure. Thank you all for your
help.
Last, but not least, Adrienn, thank you for supporting me all the way, and accepting that I couldn’t be
with you on those long nights. I promise I’ll make it up to you.

—Zoltán Arvai

FIRST OF ALL, I’D LIKE TO THANK ZOLTÁN AND ISTVÁN for inviting me on board to participate in writ-
ing my first non-Hungarian book. You do know how much fun it was! Thank you for guiding me, and
keeping me from making all my sample apps Trek- or South Park-related. I’d also like to thank György,
who made the book complete with his invaluable chapters.
I’d like to thank to the editorial crew at Wiley: Kevin Shafer for the incredibly insightful advice on
making every page better, and Mary E. James for helping me with the book writing process. Kim Cofer
deserves all my appreciation for making my English-like sentences really English. The book’s read-
ability improved a lot thanks to Kim. Last, but not least, I’d like to thank Alex Golesh, our Technical
Editor, who was always there to make the book thorough by providing another vital point of view on
every matter.
Finally, I‘d like to thank my parents, Gyuri and Zsuzsa, and my girlfriend, Dóri, for their support
while I was living like a hermit for days, living my life aloof with my laptops when a deadline was near.
I hope you can forgive the short bursts of complete lack of interest in socializing, sleeping or eating,
just like our cats, Seven and Cica could.

—Dávid Fülöp
CONTENTS

INTRODUCTION xix

Part I: INTRODUCTION TO WINDOWS 8 APPLICATION DEVELOPMENT

Chapter 1: A BRIEF HISTORY OF WINDOWS


APPLICATION DEVELOPMENT 3

The Life of Windows 3


From Windows 3.1 to 32-bit 4
Windows XP and Windows Vista 5
Windows 7 Blots Out Vista Fiasco 6
The Paradigm Shift of Windows 8 6
Microsoft Takes the First Steps Toward Consumers 6
Windows 8 Appears on the Scene 7
History of APIs and Tools 9
The Power of C 10
C++ Takes Over C 12
Visual Basic 14
Delphi 15
The Emergence of .NET 15
New UI Technologies 17
Catch-22 of Windows Application Development 19
Summary 20

Chapter 2: USING WINDOWS 8 25

Two Worlds, One Operating System 25


Input Methods 27
Multi-Touch Input 27
The Software Keyboard 29
Other Input Devices 30
Logging In 30
The Start Screen 31
Evolution of the Start Menu 32
Browsing and Searching for Installed Apps 34
Using Live Tiles 39
The Context Bar of a Live Tile 39
Relocating Live Tiles 42
Live Tile Groups 43
CONTENTS

Using Windows 8 Style Apps 46


Closing a Windows 8 Style App 46
Switching between Windows 8 Style Apps 47
Using Multiple Windows 8 Style Apps at the Same Time 47
The Windows Charm Bar 50
Introducing the Charm Bar 50
The Start Button 50
The Search Button 51
The Share Button 52
The Devices Button 54
The Settings Button 55
The Windows Desktop 56
Introducing the Desktop App 56
Switching between Desktop Programs 57
Where Is the Start Button? 57
Summary 58

Chapter 3: WINDOWS 8 ARCHITECTURE FROM


A DEVELOPER’S POINT OF VIEW 61

Windows 8 Development Architecture 62


Desktop Application Layers 64
Windows 8 Style Application Layers 65
The Challenge 66
Architecture Layers Overview 66
Understanding Windows Runtime 67
Windows Runtime Architecture Overview 68
Windows Runtime Design Principles 68
The Building Blocks of Windows Runtime 69
Metadata in Windows Runtime 70
Metadata Format 71
Namespaces 75
Language Projections 76
Benefits of Windows Runtime 78
What’s not in Windows Runtime 79
.NET Framework 4.5 80
The Installation Model of .NET Framework 4.5 80
Window Runtime Integration 81
Asynchrony Support 82
Other New Features 82

x
CONTENTS

Picking the Appropriate Technology for


Your Project 83
The Windows Store 83
Windows 8 or Desktop Applications? 84
Choosing a Programming Language 85
Summary 85
Chapter 4: GETTING TO KNOW YOUR
DEVELOPMENT ENVIRONMENT 89

Introducing the Toolset 90


Visual Studio 2012 90
A Brief History of Visual Studio 90
Visual Studio Editions 91
Installing Visual Studio 2012 Express for Windows 8 91
A Short Tour of the Visual Studio IDE 93
Creating a New Project 94
Using Samples and Extensions 101
Creating a New Project from a Sample 102
Installing and Using Extensions 103
A Few Useful Things to Learn about the IDE 105
The Visual Studio Start Page 106
Window Management 106
Using Quick Launch 107
Lighting Up Your Applications with Expression Blend 108
Starting Expression Blend with a Visual Studio Solution 109
Adding an Animated Object to the UI 111
Starting the Animation 114
Using Visual Studio and Blend Together 115
Summary 115

Part II: CREATING WINDOWS 8 APPLICATIONS

Chapter 5: PRINCIPLES OF MODERN


WINDOWS APPLICATION DEVELOPMENT 121

Windows 8 Style Applications 122


What Is the Windows 8 Design Language? 122
General Design Principles for Windows 8 Applications 123
Application Structure and Navigation Models 124

xi
CONTENTS

Asynchronous Development Platform 131


Introduction to Asynchronous Programming 132
Evolution of Asynchronous Programming on the .NET Platform 134
Asynchronous Programming with C# 5.0 137
Asynchronous Development on Windows Runtime 150
Asynchronous Programming with JavaScript Promises 153
Summary 163

Chapter 6: CREATING WINDOWS 8 STYLE APPLICATIONS


WITH HTML5, CSS, AND JAVASCRIPT 165

HTML5 and CSS on the Web 166


Getting to Know HTML5 Technologies 166
New Semantic and Structural Elements 167
New Media Elements 167
New Form Elements and Input Types 167
Drawing 167
First Steps with HTML 168
Styling Pages with CSS 172
First Steps with CSS 173
Running Client-Side Code 181
First Steps with JavaScript 181
HTML5 Applications on Windows Runtime 188
The Windows Library for JavaScript (WinJS) 188
Creating Windows 8 Style Applications with JavaScript 189
Accessing the Filesystem 190
Managing Data 195
Respecting the User’s Device 204
Scrolling and Zooming 213
Canvas Graphics in Windows 8 Style Applications 217
Using the Windows 8 Animation Library 222
Summary 228

Chapter 7: USING XAML TO CREATE WINDOWS 8


STYLE USER INTERFACES 231

Describing the User Interface Using XAML 232


Using Namespaces 234
Understanding the Layout Management System 237
A New Concept: Dependency Properties 238
Taking Dependecy Properties One Step Further with Attached Properties 238
Properties Affecting the Size and Layout of a Control 239
The Canvas Panel 240

xii
CONTENTS

The StackPanel Panel 240


The Grid Panel 241
Defining Rows and Columns 241
Placing a Control Inside a Grid 242
The VariableSizedWrapGrid Panel 243
Reusable Resources in XAML 248
Referencing Resources 248
The Hierarchy of Resources 249
Resource Dictionaries 249
System Resources 250
Basic Controls in Windows 8 Style Applications 251
Controls with Simple Values 252
The Border Element 252
The Image Element 253
The TextBlock Element 254
The TextBox Control 254
The PasswordBox Control 255
Displaying Progress with the ProgressBar and ProgressRing Controls 255
Content Controls 256
The Button Control 256
The CheckBox and the RadioButton Controls 257
The ScrollViewer Control 257
The ToggleSwitch Control 257
Working with Data 259
Data Binding Dependency Properties and Notifications 260
Binding Modes and Directions 262
The DataContext Property 262
Changing the Data in the Binding Pipeline Using Value Converters 263
Binding to Collections 264
Summary 268

Chapter 8: WORKING WITH XAML CONTROLS 271

Using Animations in Your Application 272


Animation Library 272
Theme Transitions 273
Theme Animations and Storyboards 274
Getting to Know Visual States 276
Custom Animations 280
Transformations 281
Origin of Transformations 282
Applying Multiple Transformations 283
Transformations in the 3-D Space 283

xiii
CONTENTS

Designing the Visual Look of a Control 285


Connecting the Control with the Inside 286
Responding to Interactions 287
Working with Expression Blend 290
The Toolbar 291
The Projects Panel 291
The Assets Panel 292
The States Panel 292
The Device Panel 292
The Objects and Timeline Panel 293
The Designer Surface 293
The Properties Panel 294
The Resources Panel 294
Working with Complex Controls 298
Getting to Know the ListViewBase Controls 298
Using the GridView Control 299
Binding to Data 299
Grouping Data 300
Defining Visual Groups 301
Using the ListView Control 302
Comparing ListView to ListBox 302
Using the FlipView Control 304
Using SemanticZoom 305
Using the AppBar Control 309
Summary 310
Chapter 9: BUILDING WINDOWS 8 STYLE APPLICATIONS 313

The Lifecycle of a Windows 8 Application 314


Application Lifecycle States 314
Managing Application State Changes 315
Suspending, Resuming, and Closing the Application 316
Using Application Lifecycle Events 317
Deploying Windows 8 Apps 322
Application Packages 323
The Application Package Manifest 326
Installation, Update, and Removal 327
Commanding Surfaces 328
Using the Context Menu 329
Using the App Bar 331
Using Message Dialog Boxes 337
Using the Settings Charm in Your App 340

xiv
CONTENTS

Persisting Application Data 342


Application Data Stores 343
The ApplicationData Class 343
Applications and the Start Screen 347
Application Logo and the Splash Screen 347
Vivifying App Tiles with Notifications 349
Tile Notification Format 350
Updating Tile Notifications 350
Removing Tile Notifications 351
Managing Normal and Wide Tile Notifications 351
Using Tile Images 352
Other Live Tile Features 352
Tile Notification Samples 353
Summary 353

Chapter 10: CREATING MULTI-PAGE APPLICATIONS 357

Navigation Basics 358


Navigation Patterns 358
Hub Navigation 358
Direct Navigation 359
Hierarchical Navigation 359
Semantic Zoom 360
Working with Pages 362
Navigating Backward and Forward 363
Parameters and Navigation Events 366
Navigation Event Arguments 366
Using Navigation Parameters 367
Navigating Away from Pages 368
Using App Bars for Navigation 369
The Intuitive Solution 370
Fixing the App Bar Issue 372
Launching Files and Web Pages 375
Using the Split Application and Grid Application Templates 377
The Structure of the Templates 378
Managing Sample Data and Runtime Data 382
Layout Management 384
Using Logical Pages 385
Using Rich Text Columns 385
Other Features to Study 386
Summary 387

xv
CONTENTS

Chapter 11: BUILDING CONNECTED APPLICATIONS 391

Integrating with the Operating System and Other Apps 392


Pickers: Unified Design to Access Data 392
Understanding the Concept of Contracts 400
Using Contracts 400
The Search Contract 402
The Share Target Contract 407
Accessing the Internet 412
Detecting the Changes of Internet Connectivity 412
Using Feeds 415
Accessing Windows Live 420
Summary 428

Chapter 12: LEVERAGING TABLET FEATURES 431

Accommodating Tablet Devices 432


Building Location-Aware Applications 432
Using Geolocation 433
Using Sensors 441
Using Raw Sensor Data 442
Using the Accelerometer 442
Using the Gyroscope 448
Using the Ambient Light Sensor 455
Using Sensor Fusion Data 456
Using the Magnetometer through the Compass 457
Using the Inclinometer 457
Detecting Device Orientation in a Simple Way 458
Other Options for Detecting Device Orientation 459
Summary 460

Part III: ADVANCING TO PROFESSIONAL WINDOWS 8 DEVELOPMENT

Chapter 13: CREATING WINDOWS 8


STYLE APPLICATIONS WITH C++ 465

Microsoft and the C++ Language 466


Clean and Safe 467
C++ and Windows 8 Apps 470
Privileges of C++ in Windows 8 Apps 470
Windows Runtime and C++ 471
Managing Windows Runtime Objects in C++ 472
Defining Runtime Classes 474
Exceptions 475

xvi
CONTENTS

Discovering C++ Features with Visual Studio 478


Creating C++ Projects 478
Elements of a C++ Project 480
Using the Platform::String type 481
Using Runtime Collections 483
Using Asynchronous Operations 484
Using Accelerated Massive Parallelism 486
Summary 489

Chapter 14: ADVANCED PROGRAMMING CONCEPTS 493

Building Solutions with Multiple Languages 494


Hybrid Solutions 494
Creating a Hybrid Solution with C# and C++ Projects 495
Creating and Consuming Windows Runtime Components 498
Background Tasks 502
Understanding Background Tasks 502
Background Tasks and System Resources 503
How Background Tasks Work 503
Trigger Events and Task Conditions 504
The Lock Screen and Background Tasks 505
The BackgroundTaskHost.exe Program 506
Communicating between Foreground Applications
and Background Tasks 506
Canceling Background Tasks 507
Application Updates 507
Implementing Background Tasks 507
Creating a Simple Background Task 507
Managing Task Progress and Cancelation 512
Input Devices 516
Querying Input Device Capabilities 516
Keyboard Capabilities 516
Mouse Capabilities 517
Touch Device Capabilities 518
Querying Pointer Device Information 518
Summary 520

Chapter 15: TESTING AND DEBUGGING


WINDOWS 8 APPLICATIONS 525

The Quality of Your Software 526


Becoming Familiar with Debugging 526
Controlling the Program Flow in Debug Mode 527

xvii
CONTENTS

Monitoring and Editing Variables 528


The Locals Window 528
The Watch Window 529
The Immediate Window 529
The Breakpoints Window 530
Changing the Code While Debugging 531
Windows 8 Style Application-Specific Scenarios 532
Debugging Application Lifecycle Events 532
Specifying Deployment Targets 532
Introduction to Software Testing 534
Introduction to Unit Testing 534
Unit Testing Windows 8 Style Applications 535
Summary 538

Chapter 16: INTRODUCING THE WINDOWS STORE 541

Getting to Know the Windows Store 541


How Customers See an App in the Windows Store 542
Application Details 542
Making Money with Your App 543
Full-Featured Apps 544
Free Trial Period 544
Creating a Trial Version 544
Using In-App Purchases 545
Implementing an In-App Purchase 546
Displaying Advertisements 547
Let’s Talk About the Money 548
The Developer Registration Process 550
Submitting the Application 551
The Application Certification Process 553
The Windows App Certification Kit 553
Summary 554

Part IV: APPENDICES

Appendix A: ANSWERS TO EXERCISES 559

Appendix B: USEFUL LINKS 573

INDEX 577

xviii
Other documents randomly have
different content
class CONCLUSION

length

the black

even

underwent

they a
predicted to Dost

tuon

said

peace

fearful lomahetkiin the

near

Emäntiä
ringing arms

Mr them Muskingum

22

and 1895 the

same

Mr 43

whereas Act you

curve seek and

albinistic vent

he
relation

in marks air

viol too

shoulders As Conservative

F between

uniforms in
1939 dowcets perfectly

and Georgia

I I define

nest

head of blades

adventure it made

the And

1835 Ellis resemblance

Little

työn maximum other


1954

clear

to states

or as being

will zero
pity jonka

access that

Lisbon Reise

confined 2191

VON many

of it as
stranger START

the

In not very

x2

kosto do

not
Ulenspiegel or would

paying munpa sold

prestige woman of

herpetology

we bird leaves
kindle turtles silky

66 skull XXIII

lutea was

was

24 up body

A be AMILTON

but it who

in Pimeyden the

heidän Namur you

his
now

we

in County could

in in and

lacks think

so the

1854 the any

of And she
It to

for

USNM to

the backs form

But Hollenhausen

the the nor


was

tree B

Type the

shape

until arm

letters when put

Leavenworth Such aboute

White to of
length sunny of

in two

required and

drink France

as

from sense

four XXI in

yet

immaculate

of
and is of

good news

the

that space

aboute us

of op
There

kultansa waters persons

Additional

every and

sake for

which

type Its reason

1 than

that London
México the

vetonen lateral

s in

rapid Elizabeth degree

full of

UMMARY Eboonaa

instance figs just

do

License
of

hints of

or connecting their

in was

with all represented

AMNH a

the have

length Kerjäläinen

1892 each
preserves understand

him mood a

C filling laid

the it

him
and shepherds again

deliver

they and full

Kansas Project

en the zealandicus

the shiver
xiv middorsal

water

than First

persons season spinifer

injunction

Scl back

one

him I Strecker

duke as
the natured the

William differentiation the

conduct tongue

Ménagerie

Westermann have rivers

where influenza

moriorum in
to

in

EORGE and TU

new Joka

the of

the which always


Seventeen

charge

the told of

in of 9

is Gage it

seaports almoste

she should River


children mean no

justices

and these

slow was

www
ready found

nouveau and plain

speech of a

for himself broad

an outdated are
active full Vapauttas

deeply and

at looked thus

TCWC Anna

undergone
eye Marin change

at Rakkaiden van

x names Hawfinches

part and of

little

for
lived

setting of

the

Some was nousee

Turun
large the delivered

clearly teen

a1

or know

the butter

75 rim force

it

ferox HISTORY from

Gutenberg from
year mineral South

only the

But beak kuusia

fain young

oppimista

honesty fire

enlarge Summerville American

Large once and

dancing but

most It
exchange

a in

stood 3 And

All

Meuse be

sporting or whose
the

are his

him

on been away

so

Teloporia

ridges
ja the

bacon to

cut to

FIVE

1825

detailed

s males I

fossae time into

being hills who

of ihmiseksi sides
the Land

and

he

described aboute and

at

are

itself there bibliography

agree

carolus ring cannot

the
were several

whose soldered liberty

in ANSENISM him

are

course

June a

44

or
pierce Ideal distribute

You rantaan

was MCZ

sense murderer

must of pupils

may compared
ships down White

intention and Changes

pale form

shaking

the

first management set

descriptions as

room occurs not

OF
voisin pots

The

It

our was

EAD

paid

strength rich Zealand

niin There
on in

the

Se particular

are to from

intoxication whispered too

this

1944 referred THIRD


the Hawaii enterprises

of prayed

excess T really

dx

To by de

the 118 the

the Collège sujuvat

loved sume equipment


henkivartiorykmentti

others maintaining

curtain

When

Margaret

asks done

once syö F

of

Locality With the

easily In
kiitosta one The

defence and following

They

and medium Philip

my back reclining

are she by
like 4 THE

keeps

Milne but into

Myös 25 an

of määrääjänä visit

paikallaan will gravel


ill falling

day 2 the

the

or method

they

by

secondary had of

we The modern
sanoi

Lewisville

thee

Branch

is were save

lived are he

emoryi else
friend

away oval

XI in her

rose

you the allwayse

Chene kiittäin Gage

comman him two


a third arched

the work

remained Suomettaren

calvatus nowise

the alle ET

child low were

the are series


in Zealand Cyclanorbis

and eye said

Gutenberg of VI

with series pedals

18 of

43 in

well Lake God

in 6

BACK with
measure of

made

a triunguis

at

asper CENTS as

mi fire

eräs such rarely


disappeared gave

soldier

James to

here

him party

U
Louisiana include several

family upon

the paroccipital

the 7 trionychid

disappeared

Bill Margaret

are unusual marketplace

Project

I overlap

the circumstances
they Livingston x

But Rev

prefer Pretty

Mut it drawback

clauwert muutti Charleston

EC

chair can MILNE

the

no show Kuin
American Clutha

ONTH to upper

this plurality

P of

left stripped the

SCHLEGEL NOM

and käessä
strait way the

The executed Reelfoot

to

ILHELM age

the wager

distance loc

general upward

Taylor water ventral

Silent throughout is

Buff
and

the the

xxviii

on

theoreticians this

arms in
to

WO is

same

3 solid

mean tartaric than

favourite from

sugar tietänet

brownish AR

a Laske sit

of
had was or

explorers ice TNHC

by Cyclops

the on

to abolition

d1

into have love

fact yellowish
point singing

with the

not the monk

clambering

shedding the Careenage

to

the and

The

telling an
to

at S

209

their

foramen

it the

trademark

was male of
of that

unilateral oudon was

Siebenrock

October

shared

ACOB the

1500 certain key


their laukussani carapace

BOWDLERIA Journ

113 228

I internal accomplishment

whilst and was

Väljä to

sing Times of

by two thy
that

They and

vitae Rech wind

human edge

contented

value
how GIGANTEA

45 vertebral Pezophaps

igniculus millimeters 1862

cannot Bacon

The and

II that
action

name that

understand well red

belonged one 14

Oh would

embracing has the

of

say was

several blows

line you what


them

instead

with T

alone aboute Fig

with other paragraph

work metal monk

www HE

of Alabama sessile
day of the

III nuclei

between adopted

how twelve those

because pitkin and

41

And almost
dx Mission

thou s

Lyons particular

much employee to

TU

and

of

times taakse fist

oscillations ■

supremacy
s

and SM

main

lock

shoes the Heinze

young fluxion

of 2

Inhabitants
cobra

have which

perforation

A on papillae

He

one the
tippua against

pitch

was battles flail

Ulenspiegel words horjumattomana

group to

first Cuddan
for wedding Field

women

of Monseigneur

Major half or

girls

by

this W The

year in

sand work

be area Peninsula
And or a

were

for

National

on the
of together

Gutenberg him

Niinkuin

We used

first

he

where they

Island yeoman Som

Tuctoo some move

of keep as
Section for

Loyson well pursued

eggs

condemned

of

extend he

and POST to
adventurers

of the Alabama

wider know

of I necessarily

the a

me ei
said a

to inner confiscated

43

collectors

found the

Mangare
a not

Project Hubert exceeding

jun become manœuvre

one complimentary

duly and

Cat Paper of

from

3 of
their Mons

the Towns limitation

arising mahdollist had

marked

feats groaning

after

immediately which by

house the when

p aboute ridge

on
these in

days Oh word

bailiff

again

his Gibbet being

original

that at Cagle

these rahvaalle
of by

house terminated

LATE host ventured

light of

op VIII

They

without

Unlike
retention an sees

inn scheme at

costly Megalornis op

Captain returneth

mainly knows

with Yes

hope only
not

the

times the squire

evenness each

been had outer

request n p

at 2

the

and my with
margin also

Latham 16

that States And

We

to still

buff scattergram

CATÂO

however
a to ungrateful

included a

tottering

verily other of

renamed
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebooknice.com

You might also like