Project Description
A simple MVVM related framework for Silverlight (and probably works in WPF) for slow duck tape programmers like my self. Designed to be simple easy to use and easy to understand and idea for instructional purposes.

Additional Related Resources

How To Create a Simple MVVM Silverlight Application

Step 1 - Install Visual Studio

Step 2 - goto under get started and follow the first few directions on installing silverlight tools and anything else that strikes your fancy.

Step 3 - download the current solution and include the Simple.dll or code into your project solution (if you can't get pased these steps on your own you should start some where else like programming 101 and visual studio/C# and maybe pick up a book on learning WPF or Silverlight too first)

Step 4 - Reference the tard project in your project and or dll.

Step 5 - Create a model class like this:
public class AModelClass
// super easy version
public string SomeSimpleValue { get; set; }

ok so maybe also make it return some data magically.

Step 6 - Create Your complex view model class that inherits from ViewModelBase like so (WARNING: this is the complicated part...:
public class SimpleViewModel : SimpleViewModelBase
private SimpleModelClass MyModel = new SimpleModelClass ();

public string SomeSimpleValue
get { return MyModel.SomeSimpleValue; }
if (MyModel.SomeSimpleValue!= value)
MyModel.SomeSimpleValue= value;

Step 7 - Create a View (ie user control) with xaml akin to this:

<simple:SimpleViewModelClass />
<Grid x:Name="LayoutRoot" Background="White">
<TextBox Text="{Binding SomeSimpleValue, Mode=TwoWay}" />

Step 8 - Get extra complicated and load view in shell or whatever in Xaml like so:
<simple:SimpleViewClass />

download codebase to check out the sample...

if you can't understand this Simple Framework for MVVM... you should stop now before you hurt some one...

Here is a training video post on MVVM made simple:

Last edited Feb 2, 2010 at 6:57 AM by DavidKelley, version 2