I was listening to .Net Rock's! show 971 with Brian Noyes, and I was thrilled to hear that Microsoft just dropped a new release of Prism - Prism 5.0 for WPF. I've been using Prism on an application mainly for modularity, but I was encouraged to hear that several small tweaks had been made to the Prism library. Here are a few of the highlights...
- Broken into smaller more targeted assemblies
- Updated NotificationObject to BindableBase
- Includes a conventions based View-Model Locator
- Objects can be used to pass data around in Region navigation
There was one comment aimed at the View-Model Locater calling it an anti pattern... People are entitled to their opinions, so here is mine. Using the View-Model locater that now comes with Prism saves me a few lines of code. Relating the View to the View-Model is ceremony code. If it doesn't drive business forward, it wastes my time. Some clever people at Microsoft helped me out with this... My View-Model is still testable and the project has a few less lines of my code. What's wrong with that?