WPF 4.5 Unleashed

WPF 4.5 Unleashed

4.08 (48 ratings by Goodreads)
By (author) 

Free delivery worldwide

Available. Dispatched from the UK in 2 business days
When will my order arrive?


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 moreDelves into topics that aren't covered by most books: 3D, speech, audio/video, documents, effectsShows how to create popular UI elements and leverage built-in controls such as the new Office-style RibbonDemonstrates how to create sophisticated UI mechanisms, such as Visual Studio-like collapsible/dockable panesExplains how to create first-class custom controls for WPFDemonstrates how to create hybrid WPF software that leverages Windows Forms, DirectX, ActiveX, or other non-WPF technologiesExplains how to exploit desktop features, such as Jump Lists and taskbar customizations, and the same toast notifications used by Windows Store apps
show more

Product details

  • Paperback | 864 pages
  • 167.64 x 228.6 x 27.94mm | 997.9g
  • Sams Publishing
  • Indianapolis, United States
  • English
  • w. col. figs.
  • 0672336979
  • 9780672336973
  • 125,710

Table of contents

Introduction 1Who Should Read This Book? 2Software Requirements 3Code Examples 3How This Book Is Organized 4Conventions Used in This Book 6Part I: BackgroundChapter 1: Why WPF? 7A Look at the Past 8Enter WPF 9The Evolution of WPF 12Summary 16Chapter 2: XAML Demystified 17XAML Defined 19Elements and Attributes 20Namespaces 22Property Elements 25Type Converters 26Markup Extensions 28Children of Object Elements 31Mixing XAML with Procedural Code 36XAML2009 44XAML Keywords 49Summary 52Chapter 3: WPF Fundamentals 55A Tour of the Class Hierarchy 55Logical and Visual Trees 57Dependency Properties 62Summary 76Part II: Building a WPF ApplicationChapter 4: Sizing, Positioning, and Transforming Elements 77Controlling Size 78Controlling Position 83Applying Transforms 86Summary 95Chapter 5: Layout with Panels 97Canvas 98StackPanel 100WrapPanel 102DockPanel 105Grid 108Primitive Panels 120Handling Content Overflow 122Putting It All Together: Creating a Visual Studio-Like Collapsible, Dockable, Resizable Pane 130Summary 140Chapter 6: Input Events: Keyboard, Mouse, Stylus, and Touch 141Routed Events 141Keyboard Events 150Mouse Events 152Stylus Events 156Touch Events 158Commands 170Summary 176Chapter 7: Structuring and Deploying an Application 177Standard Desktop Applications 177Navigation-Based Desktop Applications 193Gadget-Style Applications 205XAML Browser Applications 207Loose XAML Pages 213Summary 215Chapter 8: Exploiting Windows Desktop Features 217Jump Lists 217Taskbar Item Customizations 229Aero Glass 233TaskDialog 236Summary 239Part III: ControlsChapter 9: Content Controls 241Buttons 243Simple Containers 248Containers with Headers 252Summary 254Chapter 10: Items Controls 255Common Functionality 256Selectors 261Menus 298Other Items Controls 302Summary 308Chapter 11: Images, Text, and Other Controls 309The Image Control 309Text and Ink Controls 311Documents 318Range Controls 334Calendar Controls 336Summary 340Part IV: Features for Professional DevelopersChapter 12: Resources 341Binary Resources 341Logical Resources 349Summary 360Chapter 13: Data Binding 361Introducing the Binding Object 361Controlling Rendering 373Customizing the View of a Collection 385Data Providers 396Advanced Topics 403Putting It All Together: The Pure-XAML Twitter Client 412Summary 414Chapter 14: Styles, Templates, Skins, and Themes 415Styles 416Templates 430Skins 458Themes 465Summary 470Part V: Rich MediaChapter 15: 2D Graphics 473Drawings 474Visuals 491Shapes 503Brushes 511Effects 527Improving Rendering Performance 530Summary 533Chapter 16: 3D Graphics 535Getting Started with 3D Graphics 536Cameras and Coordinate Systems 540Transform3D 552Model3D 561Visual3D 584Viewport3D 5912D and 3D Coordinate System Transformation 594Summary 603Chapter 17: Animation 605Animations in Procedural Code 606Animations in XAML 619Keyframe Animations 628Easing Functions 635Animations and the Visual State Manager 641Summary 649Chapter 18: Audio, Video, and Speech 651Audio 651Video 656Speech 662Summary 669Part VI: Advanced TopicsChapter 19: Interoperability with Non-WPF Technologies 671Embedding Win32 Controls in WPF Applications 673Embedding WPF Controls in Win32 Applications 688Embedding Windows Forms Controls in WPF Applications 695Embedding WPF Controls in Windows Forms Applications 700Mixing DirectX Content with WPF Content 704Embedding ActiveX Controls in WPF Applications 710Summary 714Chapter 20: User Controls and Custom Controls 717Creating a User Control 719Creating a Custom Control 728Summary 746Chapter 21: Layout with Custom Panels 747Communication Between Parents and Children 748Creating a SimpleCanvas 751Creating a SimpleStackPanel 756Creating an OverlapPanel 759Creating a FanCanvas 764Summary 769Chapter 22: Toast Notifications 771Prerequisites 771Sending a Toast Notification 774Toast Templates 775Notification Events 778Scheduled Notifications 779Summary 780Appendix A: Fun with XAML Readers and Writers 783Overview 783The Node Loop 786Reading XAML 787Writing to Live Objects 791Writing to XML 793XamlServices 794Index 799
show more

Review quote

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 lotmore 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 learningand 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 ofchoice, over and above other books on WPF and indeed internal documentation. Highly recommendedfor 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 WindowsPresentation 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 misledby its size; this book has the best introduction and deepest insights. This is the must-read for anyonegetting 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 andguide to programming WPF. It is clearly written, easily understood, and yet still deep enough to get agood understanding of how WPF works and how to use it. Not a simple feat to accomplish! I heartilyrecommend it to all the students who take DevelopMentor's WPF course! Anyone serious about doingWPF 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 bereally the most comprehensive material on WPF. I can't think of even a single instance when I have notbeen able to find the solution (or a pointer to one) every time that I have picked up the book to figureout 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 isevident 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 theseminal books on WPF. It has everything you need to help you get to grips with the learning cliff thatis 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 PresentationFoundation Unleashed is my primary recommendation to developers looking to get up to speed quicklywith WPF."--Mike Brown, Microsoft MVP, Client App Development, and president of KharaSoft, Inc.
show more

About Adam Nathan

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.
show more

Rating details

48 ratings
4.08 out of 5 stars
5 33% (16)
4 48% (23)
3 12% (6)
2 6% (3)
1 0% (0)
Book ratings by Goodreads
Goodreads is the world's largest site for readers with over 50 million reviews. We're featuring millions of their reader ratings on our book pages to help you find your new favourite book. Close X