You are previewing Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4.
O'Reilly logo
Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Book Description

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.

Table of Contents

  1. Copyright
  2. Dedication
  3. About the Author
  4. About the Technical Reviewer
  5. Acknowledgments
  6. Introduction
  7. Introducing WPF
    1. The Evolution of Windows Graphics
    2. WPF: A Higher-Level API
    3. Resolution Independence
    4. The Architecture of WPF
    5. WPF 4
    6. The Last Word
  8. XAML
    1. Understanding XAML
    2. XAML Basics
    3. Properties and Events in XAML
    4. Using Types from Other Namespaces
    5. Loading and Compiling XAML
    6. XAML 2009
    7. The Last Word
  9. Layout
    1. Understanding Layout in WPF
    2. Simple Layout with the StackPanel
    3. The WrapPanel and DockPanel
    4. The Grid
    5. Coordinate-Based Layout with the Canvas
    6. Layout Examples
    7. The Last Word
  10. Dependency Properties
    1. Understanding Dependency Properties
    2. Property Validation
    3. The Last Word
  11. Routed Events
    1. Understanding Routed Events
    2. Event Routing
    3. WPF Events
    4. Keyboard Input
    5. Mouse Input
    6. Multitouch Input
    7. The Last Word
  12. Controls
    1. The Control Class
    2. Content Controls
    3. Specialized Containers
    4. Headered Content Controls
    5. Text Controls
    6. List Controls
    7. Range-Based Controls
    8. Date Controls
    9. The Last Word
  13. The Application
    1. The Application Life Cycle
    2. Application Tasks
    3. Assembly Resources
    4. Localization
    5. The Last Word
  14. Element Binding
    1. Binding Elements Together
    2. Binding to Objects That Aren't Elements
    3. The Last Word
  15. Commands
    1. Understanding Commands
    2. The WPF Command Model
    3. Executing Commands
    4. Advanced Commands
    5. The Last Word
  16. Resources
    1. Resource Basics
    2. Resource Dictionaries
    3. The Last Word
  17. Styles and Behaviors
    1. Style Basics
    2. Triggers
    3. Behaviors
    4. The Last Word
  18. Shapes, Brushes, and Transforms
    1. Understanding Shapes
    2. Brushes
    3. Transforms
    4. Transparency
    5. The Last Word
  19. Geometries and Drawings
    1. Paths and Geometries
    2. Drawings
    3. The Last Word
  20. Effects and Visuals
    1. Visuals
    2. Effects
    3. The WriteableBitmap Class
    4. The Last Word
  21. Animation Basics
    1. Understanding WPF Animation
    2. Basic Animation
    3. Storyboards
    4. Animation Easing
    5. Animation Performance
    6. The Last Word
  22. Advanced Animation
    1. Animation Types Revisited
    2. Key Frame Animation
    3. Path-Based Animation
    4. Frame-Based Animation
    5. Storyboards in Code
    6. The Last Word
  23. Control Templates
    1. Understanding Logical Trees and Visual Trees
    2. Understanding Templates
    3. Creating Control Templates
    4. Organizing Template Resources
    5. Building More Complex Templates
    6. Visual States
    7. The Last Word
  24. Custom Elements
    1. Understanding Custom Elements in WPF
    2. Building a Basic User Control
    3. Creating a Lookless Control
    4. Supporting Visual States
    5. Custom Panels
    6. Custom-Drawn Elements
    7. The Last Word
  25. Data Binding
    1. Binding to a Database with Custom Objects
    2. Binding to a Collection of Objects
    3. Improving Performance in Large Lists
    4. Validation
    5. Data Providers
    6. The Last Word
  26. Formatting Bound Data
    1. Data Binding Redux
    2. Data Conversion
    3. List Controls
    4. List Styles
    5. Data Templates
    6. The ComboBox
    7. The Last Word
  27. Data Views
    1. The View Object
    2. Filtering, Sorting, and Grouping
    3. The Last Word
  28. Lists, Grids, and Trees
    1. The ListView
    2. The TreeView
    3. The DataGrid
    4. The Last Word
  29. Windows
    1. The Window Class
    2. Window Interaction
    3. Nonrectangular Windows
    4. The Aero Glass Effect
    5. Programming the Windows 7 Taskbar
    6. The Last Word
  30. Pages and Navigation
    1. Understanding Page-Based Navigation
    2. Page-Based Interfaces
    3. The Page History
    4. The Navigation Service
    5. XAML Browser Applications
    6. The WebBrowser Control
    7. The Last Word
  31. Menus, Toolbars, and Ribbons
    1. Menus
    2. Toolbars and Status Bars
    3. Ribbons
    4. The Last Word
  32. Sound and Video
    1. Playing WAV Audio
    2. The MediaPlayer
    3. The MediaElement
    4. Speech
    5. The Last Word
  33. 3-D Drawing
    1. 3-D Drawing Basics
    2. Deeper into 3-D
    3. Interactivity and Animations
    4. The Last Word
  34. Documents
    1. Understanding Documents
    2. Flow Documents
    3. Read-Only Flow Document Containers
    4. Fixed Documents
    5. Annotations
    6. The Last Word
  35. Printing
    1. Basic Printing
    2. Custom Printing
    3. Print Settings and Management
    4. Printing Through XPS
    5. The Last Word
  36. Interacting with Windows Forms
    1. Assessing Interoperability
    2. Mixing Windows and Forms
    3. Creating Windows with Mixed Content
    4. The Last Word
  37. Multithreading
    1. Multithreading
    2. The Last Word
  38. The Add-in Model
    1. Choosing Between MAF and MEF
    2. The Add-in Pipeline
    3. An Application That Uses Add-Ins
    4. Interacting with the Host
    5. Visual Add-Ins
    6. The Last Word
  39. ClickOnce Deployment
    1. Understanding Application Deployment
    2. A Simple ClickOnce Publication
    3. Additional ClickOnce Options
    4. The Last Word
  40. Index