MVVM approach, what a good way? How to improve / speed up development?

This post is intended to make a list of proposals for the MVVM approach ... What tools do you use, what do you do to speed up development, how do you support your application, any special ways to find flaws in this project figure ......

that's what I'm doing:

So first I create my / db model with EF.

Then I create Views (user controls or windows) with their respective view model. Usually I place the viewmodel in the same place as my view. But starting my view name with "UC-name", I call my view model "name-model".

In my view model, I implement InotifyPropertyChanged

in my xaml view I have a resource for my viewmodel and bind my grids / controls via the items source to a staticresource.

I am trying to do a lot of end logic with triggers and styles, and also put some code in the xaml.cs file if it considers the behavior logic of my controls.

I can achieve my view model from my view (xaml + xaml.cs).

for communication between viewing modes I use MVVM backlighting.

which is pretty much it.


Things I think of

  • I am thinking about using T4 templates to create a viewmodel / view. What do you guys think about this. it's worth it?

  • when using MVVM light Messenger, we get subscription-based communication, and sometimes it’s hard for me to keep track of what has changed in my DataContext. Any suggestions on this?

  • !

+4
2

View/ViewModel, , CRUD , .

: WPF CRUD Generator. WPF- DevExpress .

, , Codeplex, View/ViewModel :

T4 . , T4 , .


MVVMLight, , , . "" MVVM, . Messenger Messenger View Services MVVM.
:

Messenger

Messenger - , , , . !

+2

(DDD). -, , , (BDD). (TDD), NUnit. Anemic Domain Model, .. , ; , , , . - (BLL), .

(DAL) NHibernate, , , .., (ORM), , .

NHibernate, , , XML ORM. : -, , , . -, "" ORM , , , XML . , Fluent. Fluent , XML #, , . , -mapper, . , , . auto-mapper , , , , ; . MySql, MS Server MS Server CE... .

- . , 1:1 , MVVM, , -, . NHibernate - , Castle Dynamic Proxy, NHibernate factory, INotifyPropertyChanged , WPF. , uNhAddIns, ObservableCollection, INotifyCollectionChanged ( , , ObservableCollection ).

, , , - (IoC), , . - Ninject, Unity . ( ), WPF -.

, , (MVVM Lite, log4net, Moq ..), . , , , - , ... . , , , -, WPF, , . , html/ajax/soap .., -.

, /XAML, , . , , XAML, .

+1

All Articles