Feed Icon  


  • Bryant Likes
  • Send mail to the author(s) E-mail
  • twitter
  • View Bryant Likes's profile on LinkedIn
  • del.icio.us
Get Microsoft Silverlight
by clicking "Install Microsoft Silverlight" you accept the
Silverlight license agreement

Hosting By

Hot Topics


Open Source Projects



WPF Patterns

Posted in WPF at Wednesday, September 27, 2006 6:30 AM Pacific Daylight Time

If you're doing WPF development, you really need to check out Dan Crevier's series on DataModel-View-ViewModel. Right now there is no easy way to read through all his posts on the subject without navigating through them using the calendar control on his blog. So for my own reference (and for yours as well) here is the list of links in the series:

  1. DataModel-View-ViewModel pattern: 1
  2. DataModel-View-ViewModel pattern: 2
  3. DM-V-VM part 3: A sample DataModel
  4. DM-V-VM part 4: Unit testing the DataModel
  5. DM-V-VM part 5: Commands
  6. DM-V-VM part 6: Revisiting the data model
  7. DM-M-VM part 7: Encapsulating commands*
  8. DM-M-VM part 8: View Models*

In addition to Dan's work, John Gossman's work on the Model-View-ViewModel pattern which is pretty similar and is also important when it comes to understanding how to design a WPF application. He has several posts on this pattern which I've collected below:

I think they are both saying pretty much the same thing. From my limited experience with designing WPF application I'd say what they are saying is correct. You really do need the kind of seperation they are talking about to make your WPF app work well. If you hard-code the click event in the XAML code-behind, how do you extend that to the context menu, the short-cut key, etc. without making things tightly coupled?

I'm currently working on updating my Contacts Sample to be more in line with DM-V-VM and I'll be adding a few more posts to the series as soon as I get it working. In the meantime, if you want to get a good education in WPF patterns that work, read through the links above.

* I'm pretty sure the title has a typo, these are still talking about DM-V-VM.

Technorati Tags: WPF

Monday, September 10, 2007 12:40:38 AM (Pacific Daylight Time, UTC-07:00)
The Patterns are fantastic. Thanks a lot for this. I am facing difficulty in hiding showing controls when event happens.
As a scenario, if I have a Window with three text boxes, then on click of a button, I want to hide two text boxes. I will I handle this in the MyCommand class?
Any help will be greatly appreciated. In a fix right now :0)
Wednesday, November 12, 2008 2:00:02 AM (Pacific Standard Time, UTC-08:00)
I currently have an exciting opportunity available with a world renowned company. They are looking for someone with C# and extensive WPF experience. Contract is based in CA although client is totally open to telecommute for the contract part of the position, which means you can work from home. I have 4 immediate openings waiting to be filled. If you are currently interested in pursuing this further reply back with the following information and I will be more then happy to provide you company name and submit your resume.
Thanks in advance for your time and understanding.
look forward to your reply.

Current resume in simple MS word format (attachment)
Current availability to start from final offer
Current location
Citizenship/Visa status
Expected compensation

Kuntal Shergill
Sr. Technical Consultant
Adecco Technical & Engineering Division
916.369.1709 D
916.369.0655 F
1-800-750-4770 O
Be the change you want to see in this World
Kuntal Shergill
Monday, June 22, 2009 11:40:45 PM (Pacific Daylight Time, UTC-07:00)
Cool stuff! Thanks for the links!
Friday, July 3, 2009 8:17:09 PM (Pacific Daylight Time, UTC-07:00)
Do you like the Model-View-ViewModel pattern?

Then you might be interested in this project:

WPF Application Framework (WAF)
Comments are closed.