Sams Teach Yourself WPF in 24 Hours and over one million other books are available for Amazon Kindle. Learn more
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images
Sell yours for a Gift Card
We'll buy it for $2.00
Learn More
Trade in now
Have one to sell? Sell on Amazon

Sams Teach Yourself WPF in 24 Hours Paperback – June 29, 2008

ISBN-13: 978-0672329852 ISBN-10: 0672329859 Edition: 1st
Buy used
Buy new
Used & new from other sellers Delivery options vary per offer
48 used & new from $12.00
Amazon Price New from Used from
"Please retry"
Paperback, June 29, 2008
"Please retry"
$24.46 $12.00

Hero Quick Promo
Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. Shop Now
$33.74 FREE Shipping on orders over $35. Only 5 left in stock (more on the way). Ships from and sold by Gift-wrap available.

Frequently Bought Together

Sams Teach Yourself WPF in 24 Hours + Windows Presentation Foundation Unleashed (WPF) + Programming WPF
Price for all three: $121.38

Buy the selected items together

Editorial Reviews

From the Back Cover

Printed entirely in color, with helpful figures and syntax coloring to make code samples appear as they do in Visual Studio.


In just 24 sessions of one hour or less, you will be able to begin effectively using WPF to solve real-world problems, developing rich user interfaces in less time than you thought possible.


Using a straightforward, step-by-step approach, each lesson builds on a real-world foundation forged in both technology and business matters, allowing you to learn the essentials of WPF from the ground up.


Step-by-step instructionscarefully walk you through the most common questions, issues, and tasks.

The Q&A sections, quizzes, and exerciseshelp you build and test your knowledge.

By the Waynotes present interesting pieces of information.

Did You Know?tips offer advice or teach an easier way to do something.

Watch Out!cautions advise you about potential problems and help you steer clear of disaster.


Learn how to...

  • Use XAML to build user interfaces
  • Leverage data binding to minimize tedious code
  • Create visually engaging applications
  • Architect and design WPF applications using proven patterns such as MVP
  • Incorporate audio and video into your applications
  • Customize controls with styles, templates, and animation
  • Apply best practices for developing software with WPF
  • Deploy WPF applications to the desktop and Web
  • Take advantage of WPF's advanced printing capabilities
  • Grow as a developer by improving your overall software design skills


Introduction 1

Part I                   Getting Started

1      What WPF Is and Isn't 5

2      Understanding XAML 17

3      Introducing the Font Viewer 27

4      Handling Application Layout 41

5      Using Basic Controls 59

6      Introducing Data Binding 75

Part II        Reaching the User

7      Designing an Application 93

8      Building a Text Document Editor 107

9      Getting a Handle on Events 121

10    Commands 145

11    Output 157

Part III      Visualizing Data

12    Building a Contact Manager 177

13    Presenters and Views 193

14    Resources and Styles 211

15    Digging Deeper into Data Binding 229

16    Visualizing Lists 251

Part IV       Creating Rich Experiences

17    Building a Media Viewer 267

18    Drawing with Shapes 291

19    Colors and Brushes 315

20    Transforms and Effects 331

21    Using Control Templates 347

22    Triggers 369

23    Animation 383

24    Best Practices 407

Part V         Appendixes

Appendix A: Tools and Resources 423

Appendix B: 3D Tutorial Using ZAM 3D 427

Appendix C: Project Source (downloadable) 437

Index 439

About the Author

Rob Eisenberg is vice president and cofounder of Blue Spire Consulting, Inc. ( He is a frequent blogger in the ( blogging community and speaks at various community events on the subjects of WPF, Agile, and TDD. His career began in music composition, which very naturally led him into interactive media. He was drawn to the .NET Framework by the persistent recommendations of his present business partner and soon after discovered WPF. Rob has been working with WPF since the prebeta days and was among the top 20 finalists in Microsoft’s Code Master Challenge in 2006. In his spare time, he enjoys playing and teaching drums, making artisan cheese, reading, and swing dancing with his lovely wife, Anna.

Christopher Bennage is the president and cofounder of Blue Spire Consulting, Inc., a Florida-based software consulting firm specializing in .NET technologies and emphasizing personal interactions with the customer. Christopher began programming on his Texas Instrument in elementary school but fell in love with computers with the advent of the Commodore Amiga. His career has brought him through various technologies beginning with Lotus Notes, VBA, and classic ASP before eventually landing him in the marvelous world of C# and the .NET Framework. His early interest in Flash, rich user experiences, and usability led him to be an early adopter of both WPF and Silverlight. Christopher embraces the values of the Agile Software Manifesto and has been heavily influenced by Extreme Programming, Domain Driven Design, and other related practices. In his free time, Christopher is usually very distracted by a dozen different, competing creative ideas. Aside from that he can sometimes be found playing Frisbee golf, guitar, or video games. He lives in Tallahassee, Florida, with his wife, Sandra, and their two children, Adah and Ranen (soon to be three children).


Shop the new
New! Introducing the, a hub for Software Developers and Architects, Networking Administrators, TPMs, and other technology professionals to find highly-rated and highly-relevant career resources. Shop books on programming and big data, or read this week's blog posts by authors and thought-leaders in the tech industry. > Shop now

Product Details

  • Paperback: 480 pages
  • Publisher: Sams Publishing; 1 edition (June 29, 2008)
  • Language: English
  • ISBN-10: 0672329859
  • ISBN-13: 978-0672329852
  • Product Dimensions: 7 x 1 x 9.1 inches
  • Shipping Weight: 2 pounds (View shipping rates and policies)
  • Average Customer Review: 4.4 out of 5 stars  See all reviews (28 customer reviews)
  • Amazon Best Sellers Rank: #498,280 in Books (See Top 100 in Books)

More About the Authors

Discover books, learn about writers, read author blogs, and more.

Customer Reviews

4.4 out of 5 stars
Share your thoughts with other customers

Most Helpful Customer Reviews

12 of 12 people found the following review helpful By Agha Khan on July 6, 2008
Format: Paperback
I believe I have every book on WPF. My first impression was 24 hours books have very little information, but it has changed my perception. The book has 24 small chapters and every chapter's information is to the point. The whole book has 4 applications and every example worth looking. I am impressed with authors. Everyone is talking about Adam Nathan's book, but this book has its own place.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
9 of 9 people found the following review helpful By Bill J. on December 22, 2009
Format: Paperback
Yes, it is true, you probably cannot learn WPF in 24 hours (especially if you still have a lot to learn) or even the entire technology of WPF from this book alone. I personally use many sources of information when trying to learn a technology. I don't think you can expect too much from a single book. However, this book is about as good as it gets for what it is. You can learn an extreme amount in a short period of time. Technology wise, the code examples in this book are extremely well done, applicable, and I'm impressed with how much functionality they cover. I've done the first 3 of 4 major examples as they apply more to me for my type of work. I plan on doing the 4th example because I think there is a lot to learn but it's not priority now.
As you progress through the book from beginning to end the code gets more complex and there is a separation between the documentation and explanations vs. code examples. Before you are finished, you feel like you are at the 10K foot level looking down and you are so far abstracted from the details. The book is good but again, I think there is too much material to cover and that is all you expect before you just have to dig into the code for yourself. If you take the time implement and figure out the code, what it does and understand the details, you will be well rewarded. It is really good clean code that demonstrates leading edge applications with rich functionality. While reading it, I sometimes wonder if these guys are just good coders that made a book. I buy 2 to 6 technical books a year and for what I do, this is possible the best one I've read in last 20 years (partly because WPF technology delivers a lot for me as well).
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 5 people found the following review helpful By The_Old_Crab on December 18, 2012
Format: Paperback Verified Purchase
I chose this book because it has coding examples which, mainly, work. However, important concepts (like DataContext) are glossed over; the goal seems to be developing WPF applications without understanding many of the underlying concepts. In many cases, the book gives you several pages of code to enter, with either no discussion or a minimal discussion of the what-how-and-why of it. One in particular messed me up, and that was trying to figure out how a declared event got subscribed to - and then, in the next chapter, I found that an ObservableCollection was being used, and the correct interfacing had already been set up - but there was no discussion by way of prelude about this in the book, so I went off on a wild goose chase for about 30 minutes, climbing around in Visual Studio Help, until I found the relationship between the ObservableCollection list and the event in question - and THEN I found out that the book example was set up correctly, but I couldn't TELL that it was set up correctly - I thought there was a mistake because here was an event with no subscriber.

The examples are in C#, which works for me because that is what I code in, and was the main reason for my chosing this book. But, in one or two cases, important code-behind program elements are left out of the examples - like namespace "using"s. I could figure out what they had to be, but only because I was already experienced in C#. You therefore should really have at least an intermediate level of skill in C# before purchasing this book. If you code in any other language, well, good luck with that.

Use this book to get started, but order your second WPF book before finishing this one. Several other users have posted books they've used, but no two of them have posted the same one, so use your own judgement. Borrowing a colleague's book for a dry run might be worthwhile.
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
5 of 5 people found the following review helpful By JustMe on March 30, 2012
Format: Paperback Verified Purchase
Yes, even though it's March 2012, and the book is a few years old and doesn't cover some of the new features of WPF (datagrid, for example), it is still extremely useful. It covers a large range of topics, from beginner to advanced. It gives you three different example programs to code (just copy code from the book) that give you quite a bit of practice, which I find as the most effective way to learn some pretty complicated stuff. Even though you just have to pretty much copy the code, it's still easy to make mistakes. Finding my mistakes actually helped me learn (and to become a better typist:). There are also several instances where there is some pretty advanced C# code-behind. So, if you're a beginner programmer, be prepared to be challenged in this area, too. Also, be aware that some of the programming examples are designed to teach WPF, and don't use the best code-behind programming (such as the lack of storing data in a database or using serialization).

As a note to the authors or potential new authors, it would be awesome to update and expand this book for WPF 4.5 or maybe wait for WPF 5. Also, as I'm a better VB programmer than C# programmer (as are many people), I have to wonder why nobody writes this kind of book for WPF using VB. Why?
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Most Recent Customer Reviews

Set up an Amazon Giveaway

Amazon Giveaway allows you to run promotional giveaways in order to create buzz, reward your audience, and attract new followers and customers. Learn more
Sams Teach Yourself WPF in 24 Hours
This item: Sams Teach Yourself WPF in 24 Hours
Price: $33.74
Ships from and sold by

What Other Items Do Customers Buy After Viewing This Item?