Home > Store > Programming > Windows Programming

larger cover

Add To My Wish List

Building Windows 8 Apps with C# and XAML

Register your product to gain access to bonus material or receive a coupon.

  • Description
  • Extras
  • Reviews
  • Sample Content

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.

Coverage includes
• 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

Related Article

Top Ten Features Windows 8 Developers Will Love

Author's Site

Please visit these author suggested sites: csharperimage.jeremylikness.com and windows8applications.codeplex.com

Customer Reviews

6 of 8 people found the following review helpful
5.0 out of 5 stars you know C# and you want a quick start on Windows 8 App development, I recommend this excellent book, December 29, 2012
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
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 7 people found the following review helpful
2.0 out of 5 stars ok to start but not too deep, January 23, 2013
By 
Alexis Rios (Duvall, WA) - See all my reviews
(REAL NAME)   
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
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


9 of 14 people found the following review helpful
5.0 out of 5 stars A Great Place to Start with Windows 8 Store App Development, November 20, 2012
By 
T. Anderson (PA USA) - See all my reviews
(VINE VOICE)    (TOP 1000 REVIEWER)    (REAL NAME)   
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.

The first chapter ends with a look at the Windows 8 tool that are available to developers and designers. They include, Blend for Visual Studio, C++ and XAML, HTML5 and JavaScript, and VB/C# and XAML.

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
6. Data
7. Tiles and Toasts
8. Giving Your Application Charm
9. MVVM and... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


Share your thoughts with other customers:
 See all 20 customer reviews...

Online Sample Chapter

Working with Data in Your Windows 8 Application

Excerpts

Introduction to UI Design Patterns for Windows 8 Apps

An Overview of Windows 8 Sensor APIs

Dependency Properties in XAML for Windows 8 Apps

Introduction to the Portable Class Library (PCL) in Windows 8

Sharing Rich Content in Windows 8 Apps

Table of Contents

   Foreword     xv
   Preface     xix

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
   HTML5 and JavaScript     21
   C++ and XAML     23
   VB/C# and XAML     24
Behind the Scenes of WinRT     25
WPF, Silverlight, and the Blue Stack     26
Summary     28
Chapter 2  Getting Started     29
Setting Up Your Environment     30
   Windows 8     30
   Visual Studio 2012     35
   Blend     36
Hello, Windows 8     37
   Creating Your First Windows 8 Application     37
   Templates     37
The ImageHelper Application     42
   Under the Covers     53
Summary     60
Chapter 3  Extensible Application Markup Language (XAML)     61
Declaring the UI     62
   The Visual Tree     64
   Dependency Properties     67
   Attached Properties     70
Data-Binding     73
   Value Converters     78
Storyboards     80
Styles and Resources     85
Layout     88
   Canvas     88
   Grid     89
   StackPanel     91
   VirtualizingPanel and VirtualizingStackPanel     93
   WrapGrid     94
   VariableSizedWrapGrid     96
   ContentControl     97
   ItemsControl     99
   ScrollViewer     99
   ViewBox     100
   GridView     102
   ListView     105
   FlipView     106
   ListBox     106
Common Controls     107
Summary     109
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
   Targeting     132
   Context Menus     134
The Application Bar     136
Icons and Splash Screens     143
About Page     145
Sensors     148
   Accelerometer     149
   Compass     149
   Geolocation     150
   Gyrometer     151
   Inclinometer     151
   Light Sensor     152
   Orientation Sensor     153
Summary     154
Chapter 5  Application Lifecycle     157
Process Lifetime Management     160
   Activation     161
   Suspension     163
   Termination     166
   Resume     166
   Navigation     168
   Application Data API     172
Connected and Alive     176
Custom Splash Screen     177
Summary     179
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
Collections     199
   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
Summary     219
Chapter 7  Tiles and Toasts     221
Basic Tiles     221
Live Tiles     222
Badges     229
Secondary Tiles     231
Toast Notifications     236
Windows Notification Service     242
Summary     250
Chapter 8  Giving Your Application Charm     253
Searching     256
Sharing     266
   Sourcing Content for Sharing     267
   Receiving Content as a Share Target     274
Settings     280
Summary     283
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
Summary     315
Chapter 10  Packaging and Deploying     317
The Windows Store     317
   Discovery     318
   Reach     322
   Business Models     323
   Advertising     328
   Preparing Your App for the Store     329
   The Process     331
   The App Certification Kit     332
   What to Expect     335
Side-Loading     337
Summary     339
Index     341



 

Sample Pages

Download the sample pages (includes Chapter 6 and Index)

 
Best Value

Book + eBook Bundle  $89.98  $53.99

Book Price $39.99
eBook Price $14.00
eBook formats included

Buy

This book includes free shipping!

Buy

Book  $49.99  $39.99

Usually ships in 24 hours.

This book includes free shipping!

Buy

eBook (Watermarked)  $39.99  $31.99

Includes EPUB, MOBI, and PDF
About eBook Formats

This eBook includes the following formats, accessible from your Account page after purchase:

ePubEPUBThe open industry format known for its reflowable content and usability on supported mobile devices.

MOBIMOBIThe eBook format compatible with the Amazon Kindle and Amazon Kindle applications.

Adobe ReaderPDFThe 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.

Purchase Reward: One Month Free Subscription
By completing any purchase on InformIT, you become eligible for an unlimited access one-month subscription to Safari Books Online.

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.