Codesnippet for RelayCommand

If you are working with MVVMLight then the RelayCommand provides binding from the View to commands within the ViewModel. To register a command it requires a couple lines of code. The perfect opportunity to write a code snippet. Here the snippets I was missing from MVVMLight: Codesnippet for RelayCommand 1: <?xml version=”1.0″ encoding=”utf-8″ ?> 2: […]

Simple ViewModelLocator with MEF

Download SourceCode These days design pattern #1 seems to be the MVVM pattern, at least in the Silverlight/WPF community. As soon as you start to dig deeper into MVVM you get in touch with another design pattern, the ViewModelLocator which is basically the ServiceLocator pattern but instead of locating Services it helps us to locate […]