Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to extend Prism for MVVM boilerplate code

Tags:

c#

.net

mef

prism

I am pretty new to Prism4/MVVM and wondering if there're any templates/extensions or frameworks which help in reducing the boilerplate code for adding the View, ViewModel, binding to DataContext etc using say Convention over Configuration ?

Ideally it'd co-exist cleanly with PRISM & MEF !

like image 580
Kumar Avatar asked Jan 23 '12 20:01

Kumar


1 Answers

Maybe using MVVM Light can provide the boiler plate code you are looking for, like the ViewModelBase class and an implementation of ICommand (RelayCommand) that is good for biding to buttons etc.

Also using the ViewModelLocator concept can be very useful and can be easily integrated with with MEF.

like image 81
Pete Davis Avatar answered Nov 10 '22 21:11

Pete Davis