Programming Books C Java PHP Python Learn more Browse Programming Books
Sams Teach Yourself WPF in 24 Hours and over one million other books are available for Amazon Kindle. Learn more
Buy New
  • List Price: $44.99
  • Save: $12.71 (28%)
FREE Shipping on orders over $35.
Only 11 left in stock (more on the way).
Ships from and sold by
Gift-wrap available.
Add to Cart
Trade in your item
Get a $2.00
Gift Card.
Have one to sell? Sell on Amazon
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

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

ISBN-13: 978-0672329852 ISBN-10: 0672329859 Edition: 1st

Buy New
Price: $32.28
28 New from $22.99 18 Used from $11.39
Amazon Price New from Used from
"Please retry"
"Please retry"
$22.99 $11.39


Frequently Bought Together

Sams Teach Yourself WPF in 24 Hours + WPF 4 Unleashed
Price for both: $74.72

Buy the selected items together
  • WPF 4 Unleashed $42.44

Customers Who Bought This Item Also Bought


Save up to 90% on Textbooks
Rent textbooks, buy textbooks, or get up to 80% back when you sell us your books. 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: 1 x 7 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 (26 customer reviews)
  • Amazon Best Sellers Rank: #586,341 in Books (See Top 100 in Books)

Editorial Reviews

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).

Excerpt. © Reprinted by permission. All rights reserved.



Windows Presentation Foundation, or WPF, is Microsoft's latest framework for building sophisticated and rich user interfaces for desktop applications. WPF differs significantly from its predecessor, and yet draws on many of the concepts found existing in frameworks for both desktops and the web.

WPF enables developers to easily and quickly handle tasks that were either very difficult or impossible to accomplish in previous frameworks.

Audience and Organization

This book is intended for those who have at least some experience with general .NET development. If you have worked with WinForms or ASP.NET, you should feel comfortable with this book. The code examples provided are written in C#, but we've been careful to keep them readable for those whose primary language is Visual Basic.

Because WPF is both a broad and a deep topic, it can easily become overwhelming. Our approach in this book is to stay broad. We cover the essential concepts of the framework. Our goal is for you to feel confident building a WPF application when you are done with the book, as well as equipping you to dig deeper into any areas of the framework that interest you.

The book is organized into five parts. In each of the first four parts, we build a sample application that demonstrates the features of WPF covered in that part. Although the applications are simplified, they are designed to reflect real-world scenarios that you are likely to encounter. Each of the parts builds on its predecessor, and we recommend reading them in order. Part V concludes with information designed to help you move forward after the book.

  • Part I, "Getting Started"—We build a utility for browsing the fonts installed on your system. You'll learn about the new markup language XAML that is an integral part of WPF. We also introduce you to most of the basic controls, including those that handle layout. You'll also learn about basic data binding in WPF.

  • Part II, "Reaching the User"—You'll create your own rich text editor. You'll learn about the powerful new event and command systems. We also introduce you to a few more controls and show you how you can deploy your WPF applications. You also discover how to print from WPF.

  • Part III, "Visualizing Data"—This part teaches you how to style an application, as well as how to use WPF's powerful graphics capabilities for visualizing the data in your applications. We also dig further into data binding and show you some options for architecting your WPF applications.

  • Part IV, "Creating Rich Experiences"—You'll learn how to easily embed media in your applications. You'll see how WPF's drawing and templating APIs make it easy to create unique and visually attractive interfaces. You'll also get started with animation.

  • Part V, "Appendices"—This includes a brief introduction to 3D and a list of tools, frameworks, and other resources that aid in WPF development.

Throughout the book, we use code-continuation characters: When a line of code is too long to fit on the printed page, we wrap it to the next line and precede it with a code-continuation character, like this:

public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)

Farther Up and Further In

Learning WPF is really a lot of fun. We've discovered a new joy in building user interfaces since we've begun using this technology. We believe that you'll have the same experience working through this book. Although it may take some time to become a master of WPF, it's actually quite easy to get up and running quickly. By the time you are done here, you'll be ready to start using WPF on your next project.

Now, let's get started!

© Copyright Pearson Education. All rights reserved.

More About the Authors

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

Customer Reviews

4.4 out of 5 stars
5 star
4 star
3 star
2 star
1 star
See all 26 customer reviews
Easy to read and well laid out.
Jim White, Statesville, NC
If you take the time implement and figure out the code, what it does and understand the details, you will be well rewarded.
Bill J.
This is the 4th book on WPF I've read in the last year and the one I would recommend to others.
Gerard J. Murphy

Most Helpful Customer Reviews

11 of 11 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.
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
4 of 4 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

Customer Images

Most Recent Customer Reviews


What Other Items Do Customers Buy After Viewing This Item?