Click here to Skip to main content
15,896,118 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 49.1K   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
#pragma checksum "H:\WPF-Silverlight-WP7\MVVM With Blend\MVVMWithBlend\MVVMWithBlend\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "DD58E52D9B10586959DF99170D9B9EB0"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.225
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Windows.Shapes;
using System.Windows.Threading;


namespace MVVMWithBlend {
    
    
    public partial class MainPage : System.Windows.Controls.UserControl {
        
        internal System.Windows.Controls.Grid LayoutRoot;
        
        internal System.Windows.Controls.TextBlock textBlock1;
        
        internal System.Windows.Controls.Button button1;
        
        internal System.Windows.Controls.TextBlock textBlock2;
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Windows.Application.LoadComponent(this, new System.Uri("/MVVMWithBlend;component/MainPage.xaml", System.UriKind.Relative));
            this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
            this.textBlock1 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock1")));
            this.button1 = ((System.Windows.Controls.Button)(this.FindName("button1")));
            this.textBlock2 = ((System.Windows.Controls.TextBlock)(this.FindName("textBlock2")));
        }
    }
}

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