Adventures in MVVM – Slides and Demo App

Shout it kick it on DotNetKicks.com

Yesterday, I gave my MVVM talk to the public for the first time in Flint, MI.  I will be in Southfield next week and Tennessee the week after that (CodeStock), giving the same talk.  Although I have some changes to make, I thought I would post what I presented last night.  I will probably work on a smaller example that I will also put up here when I am done with it.

The Demo

!(http://brianstestsite.googlepages.com/RecipeBox.png)

The demo is a front-end to a recipe database.  It should compile and run out of the box.  It was designed to work against www.eCuisine.com, but it requires you to sign up with them in order to get real data.  To get around that, I have stored some “canned” recipes in the service by default.  If you want to hook it up to use the real eCuisine.com service, simply register with them from www.eCuisine.com and add your email/client ID in the eCuisine.svc.cs file and uncomment the null for the service.  If you don’t do that, everything still works well enough for you to get the feel for the app.

The vast majority of the UI behavior exists in the View-Models and I show a few different approaches to getting View-Models hooked up to the views.

There is also a full suite of tests.  Be sure to check them out for ideas to how you might test your View-Models.

Demo Code

Powerpoint Slides

This article is part of the GWB Archives. Original Author: Brian Genisio's House Of Bilz

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.