Book description
WPF and Silverlight are unlike any other user interface (UI) technologies. They have been built to a new paradigm that—if harnessed correctly—can yield unprecedented power and performance. This book shows you how to control that power to produce clean, testable, maintainable code.
It is now recognized that any non-trivial WPF or Silverlight application needs be designed around the Model-View-ViewModel (MVVM) design pattern in order to unlock the technology's full data-binding potential.
However, the knowledge of how to do this is missing from a large part of the development community—even amongst those who work with WPF and Silverlight on a daily basis. Too often there is a reliance on programmatic interaction between controls and not enough trust in the technologies' data-binding capabilities. This leads to a clouding of design values and an inevitable loss of performance, scalability, and maintainability throughout the application.
Pro WPF and Silverlight MVVM will show you how to arrange your application so that it can grow as much as required in any direction without danger of collapse.
Table of contents
- Copyright
- About the Author
- About the Technical Reviewer
- Acknowledgments
- Introduction
- 1. Overview of WPF and Silverlight
-
2. DataBinding
- 2.1. The Power of DataBinding with XAML
-
2.2. Advanced DataBinding
-
2.2.1. Binding Parameters
- 2.2.1.1. BindingGroupName
- 2.2.1.2. BindsDirectlyToSource
- 2.2.1.3. Converter and ConverterParameter
- 2.2.1.4. ElementName
- 2.2.1.5. FallbackValue
- 2.2.1.6. IsAsync
- 2.2.1.7. NotifyOnSourceUpdated and NotifyOnTargetUpdated
- 2.2.1.8. NotifyOnValidationError
- 2.2.1.9. Path
- 2.2.1.10. Source and RelativeSource
- 2.2.1.11. StringFormat
- 2.2.1.12. TargetNullValue
- 2.2.1.13. UpdateSourceExceptionFilter
- 2.2.1.14. UpdateSourceTrigger
- 2.2.1.15. Validation
- 2.2.1.16. XPath
- 2.2.2. Data Conversion
- 2.2.3. ObjectDataProvider
- 2.2.4. Debugging DataBindings
- 2.2.5. Templating
-
2.2.1. Binding Parameters
- 2.3. Summary
- 3. Model-View Separation
-
4. The ViewModel
- 4.1. First ViewModel
- 4.2. .NET Framework Interfaces and Classes
- 4.3. Handling Concurrency
- 4.4. Summary
- 5. Events and Commands
-
6. Validation
- 6.1. The Validation Process
- 6.2. Binding Validation Rules
- 6.3. Validation in Silverlight
- 6.4. Visually Formatting Validation Errors
- 6.5. Summary
- 7. Unit Testing
- 8. Data Access Layer
- 9. Application Support
- 10. Sample Application
Product information
- Title: Pro WPF and Silverlight MVVM: Effective Application Development with Model-View-ViewModel
- Author(s):
- Release date: December 2010
- Publisher(s): Apress
- ISBN: 9781430231622
You might also like
book
MVVM Survival Guide for Enterprise Architectures in Silverlight and WPF
If you’re using Silverlight and WPF, then employing the MVVM pattern can make a powerful difference …
video
WPF 4 Programming LiveLessons
In 20 hands-on video lessons, Microsoft MVP Jason Rainwater shows how to create rich, next-generation applications …
book
Pro XAML with C#: Application Development Strategies
Pro XAML with C#: Application Development Strategies is your guide to real-world development practices on Microsoft’s …
book
Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4
This book shows you how WPF really works. It provides you with the no-nonsense, practical advice …