Sams Teach Yourself WPF in 24 Hours (Sams Teach Yourself -- Hours Series)

( 2 )


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

See more details below
Other sellers (Paperback)
  • All (11) from $8.45   
  • New (5) from $24.42   
  • Used (6) from $8.45   
Sams Teach Yourself WPF in 24 Hours

Available on NOOK devices and apps  
  • NOOK Devices
  • Samsung Galaxy Tab 4 NOOK 7.0
  • Samsung Galaxy Tab 4 NOOK 10.1
  • NOOK HD Tablet
  • NOOK HD+ Tablet
  • NOOK eReaders
  • 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

Want a NOOK? Explore Now

NOOK Book (eBook)
$19.99 price
(Save 44%)$35.99 List Price


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 instructions carefully walk you through the most common questions, issues, and tasks.

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

By the Way notes 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 overallsoftware 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

Read More Show Less

Product Details

  • ISBN-13: 9780672329852
  • Publisher: Sams
  • Publication date: 8/1/2008
  • Series: Sams Teach Yourself Series
  • Pages: 464
  • Sales rank: 1,174,207
  • Product dimensions: 6.90 (w) x 9.00 (h) x 1.00 (d)

Meet 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, competingcreative 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).

Read More Show Less

Table of Contents

Introduction 1

Pt. I Getting Started

Hour: 1 What WPF Is and Isn't 5

Hour 2 Understanding XAML 17

Hour 3 Introducing the Font Viewer 27

Hour 4 Handling Application Layout 41

Hour 5 Using Basic Controls 59

Hour 6 Introducing Data Binding 75

Pt. II Reaching the User

Hour 7 Designing an Application 93

Hour 8 Building a Text Document Editor 107

Hour 9 Getting a Handle on Events 121

Hour 10 Commands 145

Hour 11 Output 157

Pt. III Visualizing Data

Hour 12 Building a Contact Manager 177

Hour 13 Presenters and Views 193

Hour 14 Resources and Styles 211

Hour 15 Digging Deeper into Data Binding 229

Hour 16 Visualizing Lists 251

Pt. IV Creating Rich Experiences

Hour 17 Building a Media Viewer 267

Hour 18 Drawing with Shapes 291

Hour 19 Colors and Brushes 315

Hour 20 Transforms and Effects 331

Hour 21 Using Control Templates 347

Hour 22 Triggers 369

Hour 23 Animation 383

Hour 24 Best Practices 407

Pt. V Appendixes

A Tools and Resources 423

B 3D Tutorial Using ZAM 3D 427

C Project Source (downloadable) 437

Index 439

Read More Show Less



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.

Read More Show Less

Customer Reviews

Average Rating 3.5
( 2 )
Rating Distribution

5 Star


4 Star


3 Star


2 Star


1 Star


Your Rating:

Your Name: Create a Pen Name or

Barnes & 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 & 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 & 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 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


  • - By submitting a review, you grant to Barnes & and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Terms of Use.
  • - Barnes & reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & 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 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
Sort by: Showing all of 2 Customer Reviews
  • Posted August 11, 2009

    Great WPF Book

    If you are new to WPF this is the correct book to read, it is a full colored book with many step by step examples, you just need to know some XML and be familiar with Visual Studio 2008 (Express Recommended- Samples will also work on the Standard or Pro Versions). This book gives you an introduction to all WPF (Windows Presentation Foundation) features from basic layouts to Complex custom Controls and Data Visualization, on the last chapter it walks you through the process of creating an animated Media Player From Scratch.

    100% Recommended for new WPF users (not recommended for advanced users).

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted June 6, 2009

    Good basic WPF book

    Geared toward the beginner, easy to follow. Sample programs use Visual Studio 2008 Express download. The sample programs don't work on my system because I have Visual Studio 2008 Standard Edition with Vista 64-bit.

    I wish BN would list all there computer book prerequisites better on there web site. So, people can determine if the book software versions will work on there computer. I actually have to read the first part of the book to see if the software samples will work.

    Pages are glossy; making it is hard to read with desk lamps reflecting off the pages. A mat finish would be better. The colored pages are nice.

    Was this review helpful? Yes  No   Report this review
Sort by: Showing all of 2 Customer Reviews

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