You are previewing Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition.
O'Reilly logo
Pro WPF in C# 2008: Windows Presentation Foundation with .NET 3.5, Second Edition

Book Description

The Microsoft Windows Presentation Foundation provides the foundation for building applications and high-quality user experiences in Windows Vista. WPF blends application user interface, documents, and media content to provide richer control, design, and development of the visual aspects of Windows programs.

Author Matthew MacDonald shows you how WPF really works. His no-nonsense, practical advice will get you building high-quality WPF applications quickly and easily. MacDonald will take you through a thorough investigation of the more advanced aspects of WPF, and its relation to other elements of the WinFX stack and the .NET Framework 3.5, to complete your understanding of WPF and C# 2008.

Table of Contents

  1. Copyright
  2. Dedication
  3. About the Author
  4. About the Technical Reviewer
  5. Acknowledgments
  6. Introduction
  7. Introducing WPF
    1. Understanding Windows Graphics
    2. WPF: A Higher-Level API
    3. The Architecture of WPF
    4. 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. The Last Word
  9. The Application
    1. The Application Life Cycle
    2. Application Tasks
    3. The Last Word
  10. 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
  11. Content
    1. Understanding Content Controls
    2. Specialized Containers
    3. Decorators
    4. The Last Word
  12. Dependency Properties and Routed Events
    1. Understanding Dependency Properties
    2. Understanding Routed Events
    3. WPF Events
    4. The Last Word
  13. Classic Controls
    1. The Control Class
    2. Content Controls
    3. Text Controls
    4. List Controls
    5. Range-Based Controls
    6. The Last Word
  14. Windows
    1. The Window Class
    2. Window Interaction
    3. Nonrectangular Windows
    4. Vista-Style Windows
    5. The Last Word
  15. 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 Last Word
  16. Commands
    1. Understanding Commands
    2. The WPF Command Model
    3. Executing Commands
    4. Advanced Commands
    5. The Last Word
  17. Resources
    1. Assembly Resources
    2. Localization
    3. Object Resources
    4. The Last Word
  18. Styles
    1. Style Basics
    2. Triggers
    3. Last Word
  19. Shapes, Transforms, and Brushes
    1. Understanding Shapes
    2. Transforms
    3. Better Brushes
    4. Bitmap Effects
    5. The Last Word
  20. Geometries, Drawings, and Visuals
    1. Paths and Geometries
    2. Drawings
    3. Visuals
    4. The Last Word
  21. 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. The Last Word
  22. Data Binding
    1. Data Binding Basics
    2. Binding to a Database with Custom Objects
    3. Binding to a Collection of Objects
    4. Data Conversion
    5. Validation
    6. The Last Word
  23. Data Templates, Data Views, and Data Providers
    1. Data Binding Redux
    2. Data Templates
    3. Data Views
    4. Data Providers
    5. The Last Word
  24. Lists, Trees, Toolbars, and Menus
    1. The ItemsControl Class
    2. The ListView
    3. The TreeView
    4. Menus
    5. Toolbars and Status Bars
    6. The Last Word
  25. Documents
    1. Understanding Documents
    2. Flow Documents
    3. Read-Only Flow Document Containers
    4. Editing a Flow Document
    5. Fixed Documents
    6. Annotations
    7. Last Word
  26. Printing
    1. Basic Printing
    2. Custom Printing
    3. Print Settings and Management
    4. Printing Through XPS
    5. The Last Word
  27. Animation
    1. Understanding WPF Animation
    2. Basic Animation
    3. Declarative Animation and Storyboards
    4. Animation Types Revisited
    5. The Last Word
  28. Sound and Video
    1. Playing WAV Audio
    2. The MediaPlayer
    3. The MediaElement
    4. Speech
    5. The Last Word
  29. 3-D Drawing
    1. 3-D Drawing Basics
    2. Deeper into 3-D
    3. Interactivity and Animations
    4. The Last Word
  30. Custom Elements
    1. Understanding Custom Elements in WPF
    2. Building a Basic User Control
    3. Lookless Controls
    4. Extending an Existing Control
    5. Custom Panels
    6. Custom-Drawn Elements
    7. The Last Word
  31. Interacting with Windows Forms
    1. Assessing Interoperability
    2. Mixing Windows and Forms
    3. Creating Windows with Mixed Content
    4. The Last Word
  32. Multithreading and Add-Ins
    1. Multithreading
    2. Application Add-Ins
    3. The Last Word
  33. ClickOnce Deployment
    1. Application Deployment
    2. A Simple ClickOnce Publication
    3. ClickOnce Options
    4. The Last Word
  34. Index