简体   繁体   中英

How to extend Prism for MVVM boilerplate code

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 !

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.

You can check this project/templates here:

Prism Template Pack for Visual Studio 2010

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM