Click here to Skip to main content
15,884,298 members
Articles / MVVM

Using Microsoft Expression Blend 4.0 to Implement MVVM

Rate me:
Please Sign up or sign in to vote.
4.33/5 (3 votes)
1 Jun 2011CPOL3 min read 49K   809   14  
How to use Microsoft Expression Blend 4.0 Behaviors to help in the implemention of MVVM
  • MVVMWithBlend.zip
    • MVVMWithBlend
      • MVVMWithBlend.sln
      • MVVMWithBlend.suo
      • MVVMWithBlend
        • App.xaml
        • App.xaml.cs
        • Bin
          • Debug
            • AppManifest.xaml
            • ar
              • System.Windows.Controls.resources.dll
            • bg
              • System.Windows.Controls.resources.dll
            • ca
              • System.Windows.Controls.resources.dll
            • cs
              • System.Windows.Controls.resources.dll
            • da
              • System.Windows.Controls.resources.dll
            • de
              • System.Windows.Controls.resources.dll
            • el
              • System.Windows.Controls.resources.dll
            • es
              • System.Windows.Controls.resources.dll
            • et
              • System.Windows.Controls.resources.dll
            • eu
              • System.Windows.Controls.resources.dll
            • fi
              • System.Windows.Controls.resources.dll
            • fr
              • System.Windows.Controls.resources.dll
            • he
              • System.Windows.Controls.resources.dll
            • hr
              • System.Windows.Controls.resources.dll
            • hu
              • System.Windows.Controls.resources.dll
            • id
              • System.Windows.Controls.resources.dll
            • it
              • System.Windows.Controls.resources.dll
            • ja
              • System.Windows.Controls.resources.dll
            • ko
              • System.Windows.Controls.resources.dll
            • lt
              • System.Windows.Controls.resources.dll
            • lv
              • System.Windows.Controls.resources.dll
            • Microsoft.Expression.Interactions.dll
            • Microsoft.Expression.Interactions.xml
            • ms
              • System.Windows.Controls.resources.dll
            • MVVMWithBlend.dll
            • MVVMWithBlend.pdb
            • MVVMWithBlend.xap
            • nl
              • System.Windows.Controls.resources.dll
            • no
              • System.Windows.Controls.resources.dll
            • pl
              • System.Windows.Controls.resources.dll
            • pt
              • System.Windows.Controls.resources.dll
            • pt-BR
              • System.Windows.Controls.resources.dll
            • ro
              • System.Windows.Controls.resources.dll
            • ru
              • System.Windows.Controls.resources.dll
            • sk
              • System.Windows.Controls.resources.dll
            • sl
              • System.Windows.Controls.resources.dll
            • sr-Cyrl-CS
              • System.Windows.Controls.resources.dll
            • sr-Latn-CS
              • System.Windows.Controls.resources.dll
            • sv
              • System.Windows.Controls.resources.dll
            • System.Windows.Controls.dll
            • System.Windows.Controls.xml
            • System.Windows.Interactivity.dll
            • System.Windows.Interactivity.xml
            • TestPage.html
            • th
              • System.Windows.Controls.resources.dll
            • tr
              • System.Windows.Controls.resources.dll
            • uk
              • System.Windows.Controls.resources.dll
            • vi
              • System.Windows.Controls.resources.dll
            • zh-Hans
              • System.Windows.Controls.resources.dll
            • zh-Hant
              • System.Windows.Controls.resources.dll
        • ChildWindow1.xaml
        • ChildWindow1.xaml.cs
        • MainPage.xaml
        • MainPage.xaml.cs
        • MVVMWithBlend.csproj
        • MVVMWithBlend.csproj.user
        • obj
        • Properties
        • ViewModel.cs
      • MVVMWithBlendSite
using System;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace MVVMWithBlend
{
	public partial class MainPage : UserControl
	{
		public MainPage()
		{
			// Required to initialize variables
			InitializeComponent();
            ViewModel model = new ViewModel();
            this.DataContext = model;
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Philippines Philippines
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions