Home > Store > Programming > C#

larger cover

Add To My Wish List

Windows 8 Apps with XAML and C# Unleashed

  • By Adam Nathan
  • Published Dec 12, 2012 by Sams. Part of the Unleashed series.
    • Copyright 2013
    • Dimensions: 7" x 9-1/8"
    • Pages: 624
    • Edition: 1st
    • Book
    • ISBN-10: 0-672-33601-4
    • ISBN-13: 978-0-672-33601-0

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

  • Description
  • Downloads
  • Reviews
  • Sample Content

Product Author Bios

Adam Nathan is a principal software architect for Microsoft, a best-selling technical author, and arguably the world’s most prolific developer for Windows Phone. He introduced XAML to countless developers through his books on a variety of Microsoft technologies. Currently a part of Microsoft’s Startup Business Group, Adam has previously worked on Visual Studio and the Common Language Runtime. He was the founding developer and architect of Popfly, Microsoft’s first Silverlight-based product, named by PCWorld as one of its year’s most innovative products. He is also the founder of PINVOKE.NET, the online resource for .NET developers who need to access Win32. His apps have been featured on Lifehacker, Gizmodo, ZDNet, ParentMap, and other enthusiast sites.

Adam’s books are considered required reading by many inside Microsoft and throughout the industry. Adam is the author of 101 Windows Phone 7 Apps (Sams, 2011), Silverlight 1.0 Unleashed (Sams, 2008), WPF Unleashed (Sams, 2006), WPF 4 Unleashed (Sams, 2010), and .NET and COM: The Complete Interoperability Guide (Sams, 2002); a coauthor of ASP.NET: Tips, Tutorials, and Code (Sams, 2001); and a contributor to books including .NET Framework Standard Library Annotated Reference, Volume 2 (Addison-Wesley, 2005) and Windows Developer Power Tools (O’Reilly, 2006). You can find Adam online at www.adamnathan.net, or @adamnathan on Twitter.

Windows 8 enables you to build stunning applications that integrate with each other, services, and Windows itself like never before. And you can sell them in the Windows Store for tablets such as Surface, laptops, and traditional desktop PCs! Now, world-renowned Microsoft programming guru Adam Nathan shows you exactly how to write first-class apps for this radically new version of Windows.


Clear, accessible, and intensely practical, this guide teaches through concise code examples, fully color-coded to match their appearance in Visual Studio--the same approach that made Nathan’s WPF 4 Unleashed so popular. Writing with unprecedented depth and insight, Nathan guides you through creating advanced user interfaces with XAML and exploiting key Windows 8 features such as touch, sensors, charms, and live tiles. Whether you’re already comfortable with Microsoft programming or relatively new to it, Windows 8 Apps with XAML and C# Unleashed will take you to the cutting edge of Windows 8 development.


Detailed information on how to...

  • Use XAML to represent state-of-the-art user interfaces
  • Ensure app usability on multiple devices and form factors
  • Handle touch, mouse, pen, and keyboard input
  • Manage the high-performance, low-power Windows 8 app lifecycle
  • Use Windows 8 controls for managing lists, rich text, images, multimedia, and more
  • Encode, decode, and transcode multimedia content
  • Leverage rich XAML vector graphics and animation
  • Make the most of styles and templates
  • Interact with built-in functionality such as the Camera app, file picker, contact picker, the lock screen, and more
  • Exploit the Windows 8 charms bar with contracts and extensions
  • Work with the rich set of available sensors: accelerometer, compass, light sensor, location, proximity, and more

Downloads

Download free code files here

Customer Reviews

14 of 17 people found the following review helpful
5.0 out of 5 stars Excellent XAML and Windows 8 Store Application Development Coverage, December 25, 2012
By 
T. Anderson (PA USA) - See all my reviews
(VINE VOICE)    (TOP 1000 REVIEWER)    (REAL NAME)   
This review is from: Windows 8 Apps with XAML and C# Unleashed (Paperback)
As with Nathan's book WPF 4 Unleashed this book is a pure pleasure to read. It is in full color, the content is laid out in an easy to read style, the author's writing style makes it easy to read, and the content is all valuable. There is no fluff like you find in a lot of the books written today.

Part I of the book starts out with an awesome chapter on the anatomy of a Windows store app and then has a great chapter introducing XAML. The book is broken down into a total of 5 parts. I have listed them below along with the chapters they contain.

Part I. Getting Started
Chapter 1. Anatomy of a Windows Store App
Chapter 2. Mastering XAML

Part II. Building an App
Chapter 3. Sizing, Positioning, and Transforming Elements
Chapter 4. Layout
Chapter 5. Interactivity
Chapter 6. Handling Input: Touch, Mouse, Pen, and Keyboard
Chapter 7. App Model

Part III. Understanding Controls
Chapter 8. Content Controls... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 6 people found the following review helpful
5.0 out of 5 stars An essential read if you are serious about Win8 App Development with Xaml and C#, December 27, 2012
By 
Rohit Sharma (Hong Kong) - See all my reviews
(REAL NAME)   
This review is from: Windows 8 Apps with XAML and C# Unleashed (Paperback)
As of writing this review, I have not read any other book on the topic that cover such comprehensive information on both ".net for Windows Store Apps" and "XAML". This book can give your W8 app an extra edge and help stand out.

Some of my favorite topics in the book are:
- Audio/Video Controls (It covers Microsoft Media Player Framework and definitely a must read if you are writing a video app)
- Detailed guide on built-in animations (it is hard to cover animation in a book, but with different frames captured, Adam has articulated the animations very well)
- Programming with gestures
- Programming with sensors

Adam has covered intricate details, common gotchas and answered possible questions in succinct language. The book is very well structured and follows similar format as with his previous successful books ("WPF 4 in Action" and "101 Windows Phone 7 Apps" in particular).

The only topic I am aware that is not covered in the book... Read more
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


4 of 5 people found the following review helpful
5.0 out of 5 stars Best book so far, not perfect but still a 5 star, March 12, 2013
By 
Alexis Rios (Duvall, WA) - See all my reviews
(REAL NAME)   
Amazon Verified Purchase(What's this?)
This review is from: Windows 8 Apps with XAML and C# Unleashed (Paperback)
This is the book to learn how to write Windows 8 apps. It covers most of the Windows 8 features and a ton on XAML. You will learn how to use the charms, badges, toast notifications, how to publish an app to the store, how to prepare your app as a trial version, how to do in-app feature purchases, you name it. Most of the book is XAML, so if you already are good with XAML, you need only to learn a few tweaks for Windows 8. I skipped many sections, or better said did a quick look over to see if I was missing something.

Book would be better if each feature is presented with a lab or sample app. I really believe the tutorial, step by step learning mode is the best, unless you use the book as a reference. This is like a mix of both. You learn but it should be used more as a reference. Anyway is a book everybody should have in your bookshelf and keep it handy. Will keep coming back over and over.

For Windows 8 XAML is the way to go, apps written with HTML 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 17 customer reviews...

Online Sample Chapter

Mastering XAML

Table of Contents

Introduction     1
Who Should Read This Book?      3
Software Requirements     3
Code Examples     3
How This Book Is Organized     3
Conventions Used in This Book     5

Part I: Getting Started
Chapter 1: Anatomy of a Windows Store App     7

Launching a New App     8
The Package Manifest     9
The Main Page     19
The Application Definition     21
Summary     25
Chapter 2: Mastering XAML     27
Elements and Attributes     28
Namespaces     29
Property Elements     31
Type Converters     33
Markup Extensions     34
Children of Object Elements     36
Mixing XAML with Procedural Code     40
XAML Keywords     44
Summary     45

Part II: Building an App
Chapter 3: Sizing, Positioning, and Transforming Elements     47

Controlling Size     48
Controlling Position     52
Applying 2D Transforms     55
Applying 3D Transforms     62
Summary     64
Chapter 4: Layout     65
Discovering the Current Dimensions     66
Discovering the Current View State     67
Discovering the Current Orientation     70
Panels     71
Handling Content Overflow     87
Summary     99
Chapter 5: Interactivity     101
Dependency Properties     101
Routed Events     108
Commands     113
Summary     114
Chapter 6: Handling Input: Touch, Mouse, Pen, and Keyboard     115
Touch Input     116
Mouse Input     138
Pen Input     140
Keyboard Input     142
Summary     147
Chapter 7: App Model     149
Understanding the App Lifecycle     150
Programmatically Launching Apps     163
Interacting with the Windows Store     166
Leveraging Navigation     174
Summary     182

Part III: Understanding Controls
Chapter 8: Content Controls     185

Button     188
HyperlinkButton     189
RepeatButton     191
ToggleButton     191
CheckBox     192
RadioButton     192
ToolTip     194
AppBar     196
Summary     205
Chapter 9: Items Controls     207
Items in the Control     208
Items Panels     210
ComboBox     213
ListBox     214
ListView     216
GridView     219
FlipView     221
SemanticZoom     223
Summary     226
Chapter 10: Text     227
TextBlock     227
RichTextBlock     235
TextBox     240
RichEditBox     248
PasswordBox     251
Summary     252
Chapter 11: Images     253
The Image Element     253
Multiple Files for Multiple Environments     263
Decoding Images     267
Encoding Images     276
Summary     284
Chapter 12: Audio and Video     285
Playback     286
Capture     294
Transcoding     305
Summary     311
Chapter 13: Other Controls     313
Range Controls     313
Popup Controls     316
A Few More Controls     325
Summary     330

Part IV: Leveraging the Richness of XAML
Chapter 14: Vector Graphics     333

Shapes     334
Geometries     340
Brushes     348
Summary     363
Chapter 15: Animation     365
Theme Transitions     366
Theme Animations     376
Custom Animations     382
Custom Keyframe Animations     395
Easing Functions     400
Manual Animations     404
Summary     406
Chapter 16: Styles, Templates, and Visual States     409
Styles     410
Templates     418
Visual States     428
Summary     438

Part V: Exploiting Windows 8
Chapter 17: Data Binding     439

Introducing Binding     439
Controlling Rendering     447
Customizing the View of a Collection     455
Summary     459
Chapter 18: Data     461
App Data     461
User Data     466
Networking     469
Summary     474
Chapter 19: Charms     477
Search     477
Share     486
Devices     492
Settings     503
Summary     508
Chapter 20: Extensions     509
Account Picture Provider     509
AutoPlay Content and AutoPlay Device     512
Contact Picker     514
File Type Associations     516
Protocol     518
Background Tasks     519
Summary     527
Chapter 21: Sensors and Other Devices     529
Accelerometer     529
Gyrometer     532
Inclinometer     532
Compass     533
Light Sensor     533
Orientation     533
Location     534
Proximity     535
Summary     538

Part VI: Advanced Topics
Chapter 22: Thinking Outside the App: Live Tiles, Toast Notifications, and the Lock Screen     539

Live Tiles     539
Toast Notifications     552
The Lock Screen     556
Summary     557
Index     559

Sample Pages

Download the sample pages (includes Chapter 2 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.