Click here to Skip to main content
15,881,852 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
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ExpressionBlendVersion>4.0.20525.0</ExpressionBlendVersion>
    <SchemaVersion>2.0</SchemaVersion>
    <ProjectGuid>{A8CB6661-0A59-48DD-86F4-7E8E4A51CEA2}</ProjectGuid>
    <ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>MVVMWithBlend</RootNamespace>
    <AssemblyName>MVVMWithBlend</AssemblyName>
    <TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
    <SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
    <SilverlightApplication>true</SilverlightApplication>
    <SupportedCultures>
    </SupportedCultures>
    <XapOutputs>true</XapOutputs>
    <GenerateSilverlightManifest>true</GenerateSilverlightManifest>
    <XapFilename>MVVMWithBlend.xap</XapFilename>
    <SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
    <SilverlightAppEntry>MVVMWithBlend.App</SilverlightAppEntry>
    <TestPageFileName>TestPage.html</TestPageFileName>
    <CreateTestPage>true</CreateTestPage>
    <ValidateXaml>true</ValidateXaml>
    <EnableOutOfBrowser>false</EnableOutOfBrowser>
    <UsePlatformExtensions>false</UsePlatformExtensions>
    <ThrowErrorsInValidation>true</ThrowErrorsInValidation>
    <LinkedServerProject>
    </LinkedServerProject>
    <Utf8Output>true</Utf8Output>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <!-- This property group is only here to support building this project using the
		MSBuild 3.5 toolset. In order to work correctly with this older toolset, it needs 
		to set the TargetFrameworkVersion to v3.5 -->
  <PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>Bin\Debug</OutputPath>
    <DefineConstants>DEBUG;TRACE;SILVERLIGHT</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <OutputPath>Bin\Release</OutputPath>
    <DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
    <NoStdLib>true</NoStdLib>
    <NoConfig>true</NoConfig>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="Microsoft.Expression.Interactions, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="mscorlib" />
    <Reference Include="System.Windows" />
    <Reference Include="system" />
    <Reference Include="System.Core" />
    <Reference Include="System.Net" />
    <Reference Include="System.Windows.Controls, Version=2.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
    <Reference Include="System.Xml" />
    <Reference Include="System.Windows.Browser" />
  </ItemGroup>
  <ItemGroup>
    <Compile Include="App.xaml.cs">
      <DependentUpon>App.xaml</DependentUpon>
    </Compile>
    <Compile Include="ChildWindow1.xaml.cs">
      <DependentUpon>ChildWindow1.xaml</DependentUpon>
    </Compile>
    <Compile Include="MainPage.xaml.cs">
      <DependentUpon>MainPage.xaml</DependentUpon>
    </Compile>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="ViewModel.cs" />
  </ItemGroup>
  <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </ApplicationDefinition>
    <Page Include="ChildWindow1.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
    <Page Include="MainPage.xaml">
      <SubType>Designer</SubType>
      <Generator>MSBuild:Compile</Generator>
    </Page>
  </ItemGroup>
  <ItemGroup>
    <None Include="Properties\AppManifest.xml" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
  <ProjectExtensions>
    <VisualStudio>
      <FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
        <SilverlightProjectProperties />
      </FlavorProperties>
    </VisualStudio>
  </ProjectExtensions>
  <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
	     Other similar extension points exist, see Microsoft.Common.targets.
	<Target Name="BeforeBuild">
	</Target>
	<Target Name="AfterBuild">
	</Target>
	-->
</Project>

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