Model-View-ViewModel Pattern for WPF

Eine interessante Variante von Pete Weissbrod

Model-View-ViewModel Pattern for WPF: Yet another approach

A few days back, I posted an example here of implementing Model-View-Controller in a WPF scenario. On a side note, WPF specialist Josh Smith posted his own rendition here, which is also a very nice example and a more humorous choice of program.

A quick redux:
I was originally bamboozled by the two-way databinding features of WPF. I architected a GUI that was directly bound to my business objects.

a petewpf Model View ViewModel Pattern for WPF

This was a bad idea for me. Why? Because my business objects do not support any form of invalid state. As the user edits the screen, he/she is directly editing a business object.

mehr …..

Similar posts

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment