Code and Slides from My LIDNUG Talk on Silverlight and MVVM

image I had the opportunity to give an online presentation today (download it here) for the LinkedIn .NET User Group (LIDNUG) about how the MVVM pattern can be integrated into Silverlight applications. Thanks to everyone who attended! MVVM is one of those topics that I really enjoy talking about since we use it everyday at my company with the applications we’re building for customers. It’s one of those patterns that can really promote code re-use, enhance testability and minimize maintenance once you jump into it and take the time to learn how it works.


image

For those that didn’t make it to the presentation, I’ve included the slides and code in this post (download below). Topics covered in the slides and code include:

  • The benefits of using the MVVM Pattern
  • The Role of a ViewModel class
  • Creating a ViewModelBase class for common functionality
  • Creating a ViewModel class
  • Using a Service Agent class
  • Adding commanding into a Silverlight application
  • Using commanding with non-ButtonBase controls
  • The role of messaging
  • MVVM Frameworks

A couple rules I covered in the talk are shown next. I think it’s really important for people getting started with MVVM to keep these in mind. If someone tells you there’s only 1 way to implement the MVVM pattern with Silverlight applications they’re just plain wrong. It’s a gray area but there are certainly best practices you can follow which I tried to highlight in the presentation.

 

image image


The code and slides from the presentation can be downloaded below and the presentation itself can be downloaded here. Thanks to LIDNUG for the opportunity to present to the group and to everyone who attended.

 

image_418B5BFB1_47FBF5721_75802FD51_32D302891_660557911_31FF066B1_7239488E1_615299571_6EEE29CB[1]

 

MVVM Demos

 

 

 

Logo_702D5F60[1]

If you or your company is interested in training, consulting or mentoring on Silverlight 4 or other .NET technologies please visit http://www.thewahlingroup.com for more information. We’ve provided training, consulting and mentoring services to some of the largest companies in the world and would enjoy sharing our knowledge and real-world lessons learned with you.

Published Wednesday, September 15, 2010 1:47 PM by dwahlin

Comments

# re: Code and Slides from My LIDNUG Talk on Silverlight and MVVM

Wednesday, September 15, 2010 5:39 PM by T

Very good presentation. Thank you.

# Twitter Trackbacks for Code and Slides from My LIDNUG Talk on Silverlight and MVVM - Dan Wahlin's WebLog [asp.net] on Topsy.com

Pingback from  Twitter Trackbacks for                 Code and Slides from My LIDNUG Talk on Silverlight and MVVM - Dan Wahlin's WebLog         [asp.net]        on Topsy.com

# re: Code and Slides from My LIDNUG Talk on Silverlight and MVVM

Wednesday, September 15, 2010 9:30 PM by Brian Heitz

Appreciate you taking the time and giving the talk this afternoon.  Looking forward to working through your demo (and MVVM Light messaging).

# re: Code and Slides from My LIDNUG Talk on Silverlight and MVVM

Wednesday, September 15, 2010 10:41 PM by maharaj

Sorry missed the webcast. Will this webcast be available in near future online?

# re: Code and Slides from My LIDNUG Talk on Silverlight and MVVM

Thursday, September 16, 2010 2:11 AM by jitumandalia

Learned a lot. Thanks.

# re: Code and Slides from My LIDNUG Talk on Silverlight and MVVM

Thursday, September 16, 2010 2:37 AM by dwahlin

Thanks for the comments.  I'm glad to hear the talk was helpful.

Dan