Apress

Pro WPF in C# 2010

Windows Presentation Foundation in .NET 4

3rd Edition

By Matthew MacDonald

Pro WPF in C# 2010 Cover Image

This book shows you how Windows Presentation Foundation really works. It provides you with the no-nonsense, practical advice that you need in order to build high-quality WPF applications quickly and easily.

Full Description

  • ISBN13: 978-1-4302-7205-2
  • 1216 Pages
  • User Level: Intermediate to Advanced
  • Publication Date: March 30, 2010
  • Available eBook Formats: EPUB, MOBI, PDF
  • Print Book Price: $54.99
  • eBook Price: $38.99
Buy eBook Buy Print Book Add to Wishlist

Related Titles

Full Description

Microsoft's Windows Presentation Foundation (WPF) provides the foundation for building applications and high-quality user experiences for the Windows operating system. It blends the application user interface, documents, and media content, while exploiting the full power of your computer's operating system.

Its functionality extends to the support for tablet PCs and other forms of input device, and it provides a more modern imaging and printing pipeline, accessibility and UI automation infrastructure, data-driven user interfaces and visualization, and integration points for weaving the application experience into the Windows shell.

This book shows you how WPF really works. It provides you with the no-nonsense, practical advice that you need in order to build high-quality WPF applications quickly and easily. After giving you a firm foundation, it goes on to explore the more advance aspects of WPF and how they relate to the others elements of the .NET 4.0 platform and associated technologies such as Silverlight.

What you’ll learn

  • WPF basics: XAML, layout, control essentials, and data flow
  • WPF applications: Navigation, commands, localization, and deployment
  • Advanced controls: Custom controls, menus, toolbars, and trees
  • WPF documents: Text layout, printing, and document packaging
  • Graphics and multimedia: Drawing shapes, sound and video, animation, geometric transformations, and imaging

Who this book is for

This book is designed for developers encountering WPF for the first time in their professional lives. A working knowledge of C# and the basic architecture of .NET is helpful to follow the examples easily, but all concepts will be explained from the ground up.

Table of Contents

Table of Contents

  1. Introducing WPF
  2. XAML
  3. Layout
  4. Dependency Properties
  5. Routed Events
  6. Controls
  7. The Application
  8. Element Binding
  9. Commands
  10. Resources
  11. Styles and Behaviors
  12. Shapes, Brushes, and Transforms
  13. Geometries and Drawings
  14. Effects and Visuals
  15. Animation Basics
  16. Advanced Animation
  17. Control Templates
  18. Custom Elements
  19. Data Binding
  20. Formatting Bound Data
  21. Data Views
  22. Lists, Trees, and Grids
  23. Windows
  24. Pages and Navigation
  25. Menus, Toolbars, and Ribbons
  26. Sound and Video
  27. 3-D Drawing
  28. Documents
  29. Printing
  30. Interacting with Windows Forms
  31. Multithreading
  32. The Add-in Model
  33. ClickOnce Deployment
Source Code/Downloads

Downloads are available to accompany this book.

Your operating system can likely extract zipped downloads automatically, but you may require software such as WinZip for PC, or StuffIt on a Mac.

Errata

If you think that you've found an error in this book, please let us know about it. You will find any confirmed erratum below, so you can check if your concern has already been addressed.

* Required Fields

On page 47:
Maybe I'm just confused, but here it is....
Text:
"Here's how you would gain access to the types you've declared in the MyProject namespace of the current project and map them to the prefix local:
xmlns:local="clr-namespace:MyNamespace"
Comment: I guess you could have a project named MyProject with Namespace called MyNamespace, but I think the author meant to write:
xmlns:local="clr-namespace:MyProject"
?

On page 148:

The page mentions the DragEnter Event. This is wrong. Only DragOver can prevent illegal drop on the drop target.

On page 170:
The preceding paragraph says the ContentControl class is abstract. Figure 6-1 displays ContentControl as a Concrete class.

On page 274:
The last sentence on the page states that, "There is no handy drop-down list of commands from which to choose". This may have been correct previously but, in Visual Studio 2010, the Command item in the Properties Window does provide a drop down list of Application and Navigation Commands.

On page 275:

In the middle of the page before Note:

...In the case of the ApplicationCommand.New command object, that means the Ctrl+O shortcut appears in the menu alongside...

the Ctrl+N appears, not Ctrl+O.

On page 736:
I may just be missing it, but it appears that on pg 736, it states that the "DataGridCheckBoxColumn also adds a property named Content..." I've searched and searched, but it doesn't appear that this property exists. Not sure if this is a typo, or I'm just missing it.

On page 854:

In the current (10/2010) version of the ribbon control there is no PopularApplicationSkins class anymore. Microsoft has removed all these skins, so the code on this page does not work anymore.