WPF 4.5 Unleashed

Overview

The #1 WPF Book--Now Updated for WPF 4.5!
Thorough, authoritative coverage, practical examples, clear writing, and full-color presentation make this one of the most widely acclaimed programming books of the last decade.

Windows Presentation Foundation (WPF) is the recommended technology for creating modern Windows desktop apps. Whether you want to develop traditional user interfaces or integrate 3D graphics, audio/video, animation, dynamic ...

See more details below
Paperback
$38.99
BN.com price
(Save 35%)$59.99 List Price

Pick Up In Store

Reserve and pick up in 60 minutes at your local store

Other sellers (Paperback)
  • All (14) from $30.38   
  • New (11) from $32.99   
  • Used (3) from $30.38   
WPF 4.5 Unleashed

Available on NOOK devices and apps  
  • NOOK Devices
  • NOOK HD/HD+ Tablet
  • NOOK
  • NOOK Color
  • NOOK Tablet
  • Tablet/Phone
  • NOOK for Windows 8 Tablet
  • NOOK for iOS
  • NOOK for Android
  • NOOK Kids for iPad
  • PC/Mac
  • NOOK for Windows 8
  • NOOK for PC
  • NOOK for Mac
  • NOOK Study

Want a NOOK? Explore Now

NOOK Book (eBook)
$27.49
BN.com price
(Save 42%)$47.99 List Price

Overview

The #1 WPF Book--Now Updated for WPF 4.5!
Thorough, authoritative coverage, practical examples, clear writing, and full-color presentation make this one of the most widely acclaimed programming books of the last decade.

Windows Presentation Foundation (WPF) is the recommended technology for creating modern Windows desktop apps. Whether you want to develop traditional user interfaces or integrate 3D graphics, audio/video, animation, dynamic skinning, touch, rich document support, speech recognition, or more, WPF enables you to do so in a seamless, resolution-independent manner that scales from small tablets to large TVs. WPF 4.5 Unleashed is the authoritative book that covers it all, in a practical and approachable fashion, authored by WPF guru and Microsoft architect Adam Nathan.

  • Covers everything you need to know about Extensible Application Markup Language (XAML)
  • Examines the WPF feature areas in incredible depth: controls, layout, resources, data binding, styling, graphics, animation, and more
  • Delves into topics that aren’t covered by most books: 3D, speech, audio/video, documents, effects
  • Shows how to create popular UI elements and leverage built-in controls such as the new Office-style Ribbon
  • Demonstrates how to create sophisticated UI mechanisms, such as Visual Studio-like collapsible/dockable panes
  • Explains how to create first-class custom controls for WPF
  • Demonstrates how to create hybrid WPF software that leverages Windows Forms, DirectX, ActiveX, or other non-WPF technologies
  • Explains how to exploit desktop features, such as Jump Lists and taskbar customizations, and the same toast notifications used by Windows Store apps

Read More Show Less

Editorial Reviews

From the Publisher
Praise for the First Edition

“The Nathan book is brilliant--you’ll love it. Publishers, take note: I’d sure be buying a heck of a lot more technical books if more of them were like this one.”
--Jeff Atwood, codinghorror.com, cofounder of Stack Overflow

Windows Presentation Foundation Unleashed is a must-have book for anyone interested in learning and using WPF. Buy it, read it, and keep it close to your computer.”
--Josh Smith, Microsoft MVP

“As we built the feature team that delivered the new WPF presentation layer for Visual Studio 2010,
Windows Presentation Foundation Unleashed quickly became our must-read WPF reference book of choice, over and above other books on WPF and indeed internal documentation. Highly recommended for any developer wanting to learn how to make the most of WPF.”
--James Bartlett, senior lead program manager, Microsoft Visual Studio

“I’ve bought nearly all available WPF books, but the only one that’s still on my desk is Windows
Presentation Foundation Unleashed
. It not only covers all WPF aspects, but it does it in the right,
concise way so that reading it was a real pleasure.”
--Corrado Cavalli, Codeworks

Windows Presentation Foundation Unleashed is the most insightful WPF book there is. Don’t be misled by its size; this book has the best introduction and deepest insights. This is the must-read for anyone getting started or wanting to get the most out of WPF.”
--Jaime Rodriguez, Microsoft client evangelist for Windows, WPF, Silverlight, and Windows Phone

“I found Windows Presentation Foundation Unleashed to be an excellent and thorough introduction and guide to programming WPF. It is clearly written, easily understood, and yet still deep enough to get a good understanding of how WPF works and how to use it. Not a simple feat to accomplish! I heartily recommend it to all the students who take DevelopMentor’s WPF course! Anyone serious about doing
WPF work should have a copy in their library.”
--Mark Smith, DevelopMentor instructor, author of DevelopMentor’s Essential WPF course

“I have read Windows Presentation Foundation Unleashed from cover to cover and have found it to be really the most comprehensive material on WPF. I can’t think of even a single instance when I have not been able to find the solution (or a pointer to one) every time that I have picked up the book to figure out the intricacies of WPF.”
--Durgesh Nayak, team leader, Axis Technical Group

Windows Presentation Foundation Unleashed is the book that made WPF make so much sense for me.
Without Adam’s work, WPF would still be a mystery to me and my team. The enthusiasm for WPF is evident from the offset and it really rubs off on the reader.”
--Peter O’Hanlon, managing director, Lifestyle Computing Ltd

“Adam Nathan’s Windows Presentation Foundation Unleashed must surely be considered one of the seminal books on WPF. It has everything you need to help you get to grips with the learning cliff that is WPF. It certainly taught me loads, and even now, after several years of full-time WPF development,
Windows Presentation Foundation Unleashed is never far from my hand.”
--Sacha Barber, Microsoft MVP, CodeProject MVP, author of many WPF articles

“Of all the books published about WPF, there are only three that I recommend. Windows Presentation
Foundation Unleashed
is my primary recommendation to developers looking to get up to speed quickly with WPF.”
--Mike Brown, Microsoft MVP, Client App Development, and president of KharaSoft, Inc.

Read More Show Less

Product Details

  • ISBN-13: 9780672336973
  • Publisher: Sams
  • Publication date: 8/9/2013
  • Series: Unleashed Series
  • Edition number: 1
  • Pages: 847
  • Sales rank: 195,161
  • Product dimensions: 6.90 (w) x 9.00 (h) x 1.20 (d)

Meet the Author

Adam Nathan is a principal software architect for Microsoft in the Startup Business Group. Adam was previously the founding developer and architect for Popfly, Microsoft's first product built on Silverlight, named one of the 25 most innovative products of 2007 by PCWorld Magazine. Having started his career on Microsoft’s Common Language Runtime team, Adam has been at the core of .NET and WPF technologies since the very beginning.

Adam’s books have been considered required reading by many inside Microsoft and throughout the industry. He is the author of the best-selling WPF Unleashed (Sams, 2006) that was nominated for a 2008 Jolt Award, WPF 4 Unleashed (Sams, 2010), Windows 8 Apps with XAML and C# Unleashed (Sams, 2012), 101 Windows Phone 7 Apps (Sams, 2011), Silverlight 1.0 Unleashed (Sams, 2008), 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). Adam is also the creator of PINVOKE.NET and its Visual Studio add-in. You can find him online at www.adamnathan.net or @adamnathan on Twitter.

Read More Show Less

Table of Contents

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

Part I: Background
Chapter 1: Why WPF? 7

A Look at the Past 8
Enter WPF 9
The Evolution of WPF 12
Summary 16
Chapter 2: XAML Demystified 17
XAML Defined 19
Elements and Attributes 20
Namespaces 22
Property Elements 25
Type Converters 26
Markup Extensions 28
Children of Object Elements 31
Mixing XAML with Procedural Code 36
XAML2009 44
XAML Keywords 49
Summary 52
Chapter 3: WPF Fundamentals 55
A Tour of the Class Hierarchy 55
Logical and Visual Trees 57
Dependency Properties 62
Summary 76

Part II: Building a WPF Application
Chapter 4: Sizing, Positioning, and Transforming Elements 77

Controlling Size 78
Controlling Position 83
Applying Transforms 86
Summary 95
Chapter 5: Layout with Panels 97
Canvas 98
StackPanel 100
WrapPanel 102
DockPanel 105
Grid 108
Primitive Panels 120
Handling Content Overflow 122
Putting It All Together: Creating a Visual Studio-Like Collapsible, Dockable, Resizable Pane 130
Summary 140
Chapter 6: Input Events: Keyboard, Mouse, Stylus, and Touch 141
Routed Events 141
Keyboard Events 150
Mouse Events 152
Stylus Events 156
Touch Events 158
Commands 170
Summary 176
Chapter 7: Structuring and Deploying an Application 177
Standard Desktop Applications 177
Navigation-Based Desktop Applications 193
Gadget-Style Applications 205
XAML Browser Applications 207
Loose XAML Pages 213
Summary 215
Chapter 8: Exploiting Windows Desktop Features 217
Jump Lists 217
Taskbar Item Customizations 229
Aero Glass 233
TaskDialog 236
Summary 239

Part III: Controls
Chapter 9: Content Controls 241

Buttons 243
Simple Containers 248
Containers with Headers 252
Summary 254
Chapter 10: Items Controls 255
Common Functionality 256
Selectors 261
Menus 298
Other Items Controls 302
Summary 308
Chapter 11: Images, Text, and Other Controls 309
The Image Control 309
Text and Ink Controls 311
Documents 318
Range Controls 334
Calendar Controls 336
Summary 340

Part IV: Features for Professional Developers
Chapter 12: Resources 341

Binary Resources 341
Logical Resources 349
Summary 360
Chapter 13: Data Binding 361
Introducing the Binding Object 361
Controlling Rendering 373
Customizing the View of a Collection 385
Data Providers 396
Advanced Topics 403
Putting It All Together: The Pure-XAML Twitter Client 412
Summary 414
Chapter 14: Styles, Templates, Skins, and Themes 415
Styles 416
Templates 430
Skins 458
Themes 465
Summary 470

Part V: Rich Media
Chapter 15: 2D Graphics 473

Drawings 474
Visuals 491
Shapes 503
Brushes 511
Effects 527
Improving Rendering Performance 530
Summary 533
Chapter 16: 3D Graphics 535
Getting Started with 3D Graphics 536
Cameras and Coordinate Systems 540
Transform3D 552
Model3D 561
Visual3D 584
Viewport3D 591
2D and 3D Coordinate System Transformation 594
Summary 603
Chapter 17: Animation 605
Animations in Procedural Code 606
Animations in XAML 619
Keyframe Animations 628
Easing Functions 635
Animations and the Visual State Manager 641
Summary 649
Chapter 18: Audio, Video, and Speech 651
Audio 651
Video 656
Speech 662
Summary 669

Part VI: Advanced Topics
Chapter 19: Interoperability with Non-WPF Technologies 671

Embedding Win32 Controls in WPF Applications 673
Embedding WPF Controls in Win32 Applications 688
Embedding Windows Forms Controls in WPF Applications 695
Embedding WPF Controls in Windows Forms Applications 700
Mixing DirectX Content with WPF Content 704
Embedding ActiveX Controls in WPF Applications 710
Summary 714
Chapter 20: User Controls and Custom Controls 717
Creating a User Control 719
Creating a Custom Control 728
Summary 746
Chapter 21: Layout with Custom Panels 747
Communication Between Parents and Children 748
Creating a SimpleCanvas 751
Creating a SimpleStackPanel 756
Creating an OverlapPanel 759
Creating a FanCanvas 764
Summary 769
Chapter 22: Toast Notifications 771
Prerequisites 771
Sending a Toast Notification 774
Toast Templates 775
Notification Events 778
Scheduled Notifications 779
Summary 780
Appendix A: Fun with XAML Readers and Writers 783
Overview 783
The Node Loop 786
Reading XAML 787
Writing to Live Objects 791
Writing to XML 793
XamlServices 794
Index 799

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)