Building Windows 8 Apps with C# and XAML
- By Jeremy Likness
- Published Oct 25, 2012 by Addison-Wesley Professional. Part of the Microsoft Windows Development Series series.
- Copyright 2013
- Dimensions: 7" x 9-1/8"
- Pages: 384
- Edition: 1st
- ISBN-10: 0-321-82216-1
- ISBN-13: 978-0-321-82216-1
Register your product to gain access to bonus material or receive a coupon.
Product Author Bios
Jeremy Likness is a principal consultant for Wintellect LLC, a three-year Microsoft MVP, and winner of Microsoft's 2010 MVP of the Year award. He has 20 years of experience developing enterprise applications in multiple industries, including 15 years building highly scalable web solutions with Microsoft technologies. He helped create the health monitoring system for the back-end data centers that provided video streaming during the 2010 Vancouver Winter Olympics. Likness authored Designing Silverlight Business Applications and created Addison-Wesley's video training course Fundamentals of the Managed Extensibility Framework (MEF). Jeremy regularly speaks, contributes articles, and blogs on topics of interest to the Microsoft developer community. His blog can be found at http://csharperimage.jeremylikness.com/.
“Jeremy builds real apps for real customers. That’s why I can heartily recommend this book. Go out and write some great apps…and keep this book handy.”
—From the Foreword by Jeff Prosise
Build Exceptionally Immersive and Responsive Touch-Based Windows Store Apps for Windows 8 with C# and XAML
This is the first practical guide to building breakthrough applications for Windows 8 from project templates through publication to the new Windows Store. Microsoft “MVP of the Year” Jeremy Likness helps you combine your existing developer skills with new Visual Studio 2012 tools and best practices to create apps that are intuitive and innovative. His guidance and insight will help you dive into Windows 8 development—and gain a powerful competitive advantage for years to come.
Likness illuminates the entire apps lifecycle, from planning and Model-View-View Model (MVVM) based design through coding, testing, packaging, and deployment. He covers both business and consumer apps, showing how Windows 8/WinRT development builds upon and contrasts with older WPF and Silverlight approaches.
Using carefully crafted downloadable code examples and sample projects, Likness shows how to make the most of new platform features, including integrated social networking, search, contracts, charms, and tiles. Throughout, he addresses crucial development challenges that have only been discussed on MSDN, blog posts, and Twitter feeds—and never with this depth and clarity before.
• Mastering real-world Windows 8 development for all devices and form factors • Understanding the new WinRT framework and the unique characteristics of Windows 8 apps
• Designing apps that are faster, more responsive, do more with less, and maximize battery life
• Creating exceptionally fluid interfaces with VS 2012 templates, built-in animations, and XAML
• Building apps that respond consistently to multiple forms of input, including complex touch manipulations
• Using contracts and charms to expose services or enable users to do so
• Providing information to users through Live Tiles even when your app isn’t running
• Connecting your app seamlessly to multiple data sources, including social networks and cloud storage
• Syndicating rich, network-based content
• Using Model-View-ViewModel (MVVM)
• Securing Windows 8 apps through authentication and authorization
• Efficiently testing, debugging, packaging, and deploying apps
6 of 8 people found the following review helpful
you know C# and you want a quick start on Windows 8 App development, I recommend this excellent book,
This review is from: Building Windows 8 Apps with C# and XAML (Microsoft Windows Development Series) (Paperback)Review of Building Windows 8 Apps with C# and XAML
During the holiday season, I received the Building Windows 8 Apps with C# and XAML by Jeremy Likness. Holidays are the perfect time to read books! Before starting the book, I was curious to know if it would be useful to me, since I created my first Windows 8 app (Canadian Developer Connection) earlier this year where I included a lot of Windows 8 features. It turned out that I was very satisfied with the number of things I learned.
The reader should have extreme confidence in the content of the book, given the author's solid experience and background.
The book starts with a simple app that is more than just a "Hello World" app. After the first app, a beginner would be happy to read and learn more.
The author took the time to explain some "under the cover" mechanisms of the new Windows 8 Store app world. Yes, the Registry is still present more than ever. This information is very much... Read more
5 of 7 people found the following review helpful
ok to start but not too deep,
Amazon Verified Purchase(What's this?)
This review is from: Building Windows 8 Apps with C# and XAML (Microsoft Windows Development Series) (Paperback)This is more like an introduction to Windows 8 App. You will get a history lesson of Windows development through the years, the book started nicely with the Image Helper app in a tutorial like fashion. The example throws an error (if you type the example as it is in the book), but author provided updated code. I got excited reading this chapter because of this tutorial step by step example, and I thought the book will continue this way all the way to the end, but no, that is it. Then you get random examples, author tells you to open the code and explains a few areas, but not the whole picture, so you keep wondering how this or how that works.
You need to read the example code and try to understand how things are connected. Especially things like the Visual State Manager on a Windows 8 app (Filled, Snapped, FullScreen), it looks like the app magically changes the view, but you have repeated code for each state and then things get hidden or displayed (there are some... Read more
9 of 14 people found the following review helpful
A Great Place to Start with Windows 8 Store App Development,
Amazon Verified Purchase(What's this?)
This review is from: Building Windows 8 Apps with C# and XAML (Microsoft Windows Development Series) (Paperback)This book is the perfect size and the perfect depth for getting up to speed quickly with building Windows 8 Store Applications.
The book starts by introducing WinRT. This introduction includes a really nice history of how Microsoft got to where they are now. It starts with a look back at MS-DOS, MS-DOS Executive, the Win32 API, COM, and.NET. The introduction leads us up to NUI (Natural User Interface) and the Windows Store Application Design Principles.
I have listed all the chapters below.
1. The New Windows Runtime
2. Getting Started
3. Extensible Application Markup Language (XAML)
4. Windows 8 Applications
5. Application Lifecycle
7. Tiles and Toasts
8. Giving Your Application Charm
9. MVVM and... Read more
› See all 20 customer reviews...
Online Sample Chapter
Table of Contents
Chapter 1 The New Windows Runtime 1
Looking Back: Win32 and .NET 2
Looking Forward: Rise of the NUI 8
Introducing the Windows Store Application 12
Windows 8 Design 14
Fast and Fluid 15
Snap and Scale 15
Use of Right Contracts 16
Great Tiles 17
Connected and Alive 19
Embrace Windows 8 Design Principles 19
Windows 8 Tools of the Trade 19
Blend for Visual Studio 20
C++ and XAML 23
VB/C# and XAML 24
Behind the Scenes of WinRT 25
WPF, Silverlight, and the Blue Stack 26
Chapter 2 Getting Started 29
Setting Up Your Environment 30
Windows 8 30
Visual Studio 2012 35
Hello, Windows 8 37
Creating Your First Windows 8 Application 37
The ImageHelper Application 42
Under the Covers 53
Chapter 3 Extensible Application Markup Language (XAML) 61
Declaring the UI 62
The Visual Tree 64
Dependency Properties 67
Attached Properties 70
Value Converters 78
Styles and Resources 85
VirtualizingPanel and VirtualizingStackPanel 93
Common Controls 107
Chapter 4 Windows 8 Applications 111
Layouts and Views 111
The Simulator 112
The Visual State Manager 115
Semantic Zoom 119
Handling User Input 122
Pointer Events 124
Manipulation Events 126
Mouse Support 128
Keyboard Support 129
Visual Feedback 131
Context Menus 134
The Application Bar 136
Icons and Splash Screens 143
About Page 145
Light Sensor 152
Orientation Sensor 153
Chapter 5 Application Lifecycle 157
Process Lifetime Management 160
Application Data API 172
Connected and Alive 176
Custom Splash Screen 177
Chapter 6 Data 181
Application Settings 181
Accessing and Saving Data 183
The Need for Speed and Threading 189
Understanding async and await 191
Lambda Expressions 194
IO Helpers 195
Embedded Resources 196
Language Integrated Query (LINQ) 200
Web Content 203
Syndicated Content 205
Streams, Buffers, and Byte Arrays 207
Compressing Data 208
Encrypting and Signing Data 211
Web Services 214
OData Support 217
Chapter 7 Tiles and Toasts 221
Basic Tiles 221
Live Tiles 222
Secondary Tiles 231
Toast Notifications 236
Windows Notification Service 242
Chapter 8 Giving Your Application Charm 253
Sourcing Content for Sharing 267
Receiving Content as a Share Target 274
Chapter 9 MVVM and Testing 285
UI Design Patterns 286
The Model 292
The View 293
The View Model 295
The Portable Class Library 296
Why Test? 301
Testing Eliminates Assumptions 302
Testing Kills Bugs at the Source 302
Testing Helps Document Code 303
Testing Makes Extending and Maintaining Applications Easier 304
Testing Improves Architecture and Design 305
Testing Makes Better Developers 305
Conclusion: Write Those Unit Tests! 306
Unit Tests 306
Windows Store Unit Testing Framework 307
Mocks and Stubs 311
Chapter 10 Packaging and Deploying 317
The Windows Store 317
Business Models 323
Preparing Your App for the Store 329
The Process 331
The App Certification Kit 332
What to Expect 335
Download the sample pages (includes Chapter 6 and Index)
Book + eBook Bundle
Book Price $39.99
eBook Price $14.00
eBook formats included
This book includes free shipping!
This book includes free shipping!
Includes EPUB, MOBI, and PDF
About eBook Formats
This eBook includes the following formats, accessible from your Account page after purchase:
EPUBThe open industry format known for its reflowable content and usability on supported mobile devices.
MOBIThe eBook format compatible with the Amazon Kindle and Amazon Kindle applications.
PDFThe popular standard, used most often with the free Adobe® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.
Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.