View Model Locator – MEF Style

At MIX, Laurent Bugnion and I had a brainstorming chat around improving on the ViewModel locator “pattern” through the usage of a MEF generic locator that allows binding via indexer properties thus removing the need for a hard-coded locator. Tonite John Papa pinged me with a similar thought. Next thing you know we paired up for about 40 mins…and Voila, Success!

Caveat: We hit a binding bug on SL4 that made it a little uglier than it needs to be through requiring a converter. Hopefully that will be fixed soon.

Go read about it on John’s blog!