Book description
For C# developers, this book offers a fast route to getting more closely acquainted with the ins and outs of Windows Presentation Foundation. The recipe approach smoothes out the complexities and enhances learning.
- Full of illustrations, diagrams, and tips with clear step-by-step instructions and real world examples
- Gain a strong foundation of WPF features and patterns
- Leverage the MVVM pattern to build decoupled, maintainable apps
In Detail
Windows Presentation Foundation (WPF) provides developers with a unified programming model for building rich Windows smart client user experiences that incorporate UI, media, and documents.
WPF has become the leading technology for developing rich client applications on the Windows platform, packed with features and capabilities. However, WPF is big; in fact, it’s huge, causing a steep learning curve for the beginner and even for those already using some WPF features.
Windows Presentation Foundation 4.5 Cookbook provides clear recipes for common WPF tasks. It includes detailed explanations and code examples for customizing and enhancing the basic scenarios, while gaining a deep understanding of WPF mechanics and capabilities.
WPF is different and requires a different mind-set and approach. This book provides recipes and insights not only in its design but also its practical implementation details.
Starting from the foundations of WPF, such as dependency properties and XAML, the book touches on all major WPF aspects, such as controls and layout, resources, and digs deep into its unprecedented data binding capabilities.
The book shows data and control templates in action, which allow full customizations of displayed data and controls in a declarative way. Supported by styles and resources makes data binding all the more powerful. The Model View View-Model pattern is presented as an effective way of maximizing decoupling of components, while providing an elegant way of expanding applications while maintaining a tight grip on complexity.
The later parts discuss custom elements and controls – the ultimate customization mechanism, and looks at multithreading issues, and how .NET 4.5 task parallelism features can enhance application performance.
Table of contents
-
Windows Presentation Foundation 4.5 Cookbook
- Table of Contents
- Windows Presentation Foundation 4.5 Cookbook
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Preface
- 1. Foundations
- 2. Resources
-
3. Layout and Panels
- Introduction
- Creating a table-like user interface
- Dynamically sizing grid rows/columns
- Creating a scrollable user interface
- Creating a border around panels and elements
- Placing elements in exact positions
- Adding/removing elements to a panel dynamically
- Creating a tabbed user interface
- Implementing drag-and-drop
- 4. Using Standard Controls
- 5. Application and Windows
-
6. Data Binding
- Introduction
- Element to element binding
- Binding to a single object
- Binding to a collection
- Using data templates
- Using value converters
- Creating a master-detail view
- Sorting and filtering bound collections
- Grouping bound collections
- Binding to multiple properties
- Binding hierarchical data to a TreeView
- Presenting data in a grid
- Validating data
- 7. Commands and MVVM
-
8. Styles, Triggers, and Control Templates
- Introduction
- Creating and using styles
- Applying a style automatically
- Creating a property trigger
- Using data triggers
- Creating an event trigger
- Creating a multi trigger
- Using behaviors
- Replacing the control template of a progress bar
- Replacing the control template of a scroll bar
- Customizing selection in a Selector control
- 9. Graphics and Animation
- 10. Custom Elements
- 11. Threading
- Index
Product information
- Title: Windows Presentation Foundation 4.5 Cookbook
- Author(s):
- Release date: September 2012
- Publisher(s): Packt Publishing
- ISBN: 9781849686228
You might also like
book
Essential Windows Presentation Foundation
“Chris Anderson was one of the chief architects of the next-generation GUI stack, the Windows Presentation …
book
Windows Presentation Foundation Development Cookbook
Gain comprehensive insight into WPF mechanics and capabilities. About This Book Gain a strong foundation in …
book
Pro C# 2010 and the .NET 4 Platform, Fifth Edition
The first edition of this book was released at the 2001 Tech-Ed conference in Atlanta, Georgia. …
book
Windows® Presentation Foundation Unleashed
Printed entirely in color, with helpful figures and syntax coloring to make code samples appear as …