Summary
In this chapter, we looked at several techniques that you can use to improve application performance and responsiveness. We saw how asynchronous bindings will allow us to create asynchronous behaviour directly in XAML. We saw how to construct our View Models asynchronously, using the ObjectDataProvider
. We looked at how we can use priority binding to allow for best-case binding, where you display the best available binding source dynamically. We looked at built-in support for virtualization and paging when using an ItemSource
control and VirtualizingStackPanel
. We saw how we could take advantage of the BackgroundWorker
to greatly simplify asynchronous programming. And we finished off by talking about the idea of system requirements followed by looking at the new Lazy keyword in .NET 4.0.
We went through great efforts when writing this book. We tried very hard to make it a comprehensive guide that would allow developers to build enterprise solutions that take advantage of MVVM's benefits...