Synchronizing between main and codeplex

This commit is contained in:
Laurent Bugnion 2010-11-07 14:01:30 +01:00
Родитель 7df968af3e
Коммит a78e99e0b8
129 изменённых файлов: 949 добавлений и 6346 удалений

35
.hgignore Normal file
Просмотреть файл

@ -0,0 +1,35 @@
# Ignore file for Visual Studio 2010
# use glob syntax
syntax: glob
# Ignore Studio files
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.lib
*.sbr
*.scc
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
_Resharper.*/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
*.[Pp]ublish.xml
glob:GalaSoft.MvvmLight/_ReSharper.GalaSoft.MvvmLight/

Двоичные данные
GalaSoft.MvvmLight.CheckVersion/External/GalaSoft.MvvmLight.dll поставляемый

Двоичный файл не отображается.

Двоичные данные
GalaSoft.MvvmLight.CheckVersion/External/MvvmLightToolkit.Setup.Configure.exe поставляемый

Двоичный файл не отображается.

Просмотреть файл

@ -1,20 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.CheckVersion", "GalaSoft.MvvmLight.CheckVersion\GalaSoft.MvvmLight.CheckVersion.csproj", "{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,23 +0,0 @@
<Application x:Class="GalaSoft.MvvmLight.CheckVersion.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:vm="clr-namespace:GalaSoft.MvvmLight.CheckVersion.ViewModel"
StartupUri="MainWindow.xaml"
mc:Ignorable="d">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Skins/Icons.xaml" />
<ResourceDictionary Source="Skins/Brushes.xaml" />
<ResourceDictionary Source="Skins/Default.xaml" />
</ResourceDictionary.MergedDictionaries>
<!--Global View Model Locator-->
<vm:ViewModelLocator x:Key="Locator"
d:IsDataSource="True" />
</ResourceDictionary>
</Application.Resources>
</Application>

Просмотреть файл

@ -1,94 +0,0 @@
// ****************************************************************************
// <copyright file="App.xaml.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.Collections.Generic;
using System.Windows;
using GalaSoft.MvvmLight.CheckVersion.ViewModel;
using GalaSoft.MvvmLight.Messaging;
namespace GalaSoft.MvvmLight.CheckVersion
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App
{
private static List<Func<bool>> _shutdownConfirmations;
public void ReceiveCommandMessage(CommandMessage message)
{
if (message != null
&& message.Command == Commands.RequestShutdown)
{
ConfirmShutdown();
}
}
public void ReceiveCommandMessageGeneric(CommandMessage<Func<bool>> message)
{
if (message != null
&& message.Command == Commands.RequestShutdownNotification)
{
RegisterForShutdown(message.Content);
}
}
protected override void OnStartup(StartupEventArgs e)
{
Messenger.Default.Register<CommandMessage>(this, ReceiveCommandMessage);
Messenger.Default.Register<CommandMessage<Func<bool>>>(this, ReceiveCommandMessageGeneric);
base.OnStartup(e);
}
private static void RegisterForShutdown(Func<bool> confirmShutdown)
{
if (confirmShutdown == null)
{
return;
}
if (_shutdownConfirmations == null)
{
_shutdownConfirmations = new List<Func<bool>>();
}
_shutdownConfirmations.Add(confirmShutdown);
}
private void ConfirmShutdown()
{
var shutdownOk = true;
if (_shutdownConfirmations != null)
{
foreach (var f in _shutdownConfirmations)
{
if (!f())
{
shutdownOk = false;
break;
}
}
}
if (shutdownOk)
{
Shutdown();
}
}
}
}

Двоичный файл не отображается.

Просмотреть файл

@ -1,255 +0,0 @@
<?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>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{B7EB5A15-61AE-4BE3-ACE3-80CA75441028}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight.CheckVersion</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.CheckVersion</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<SignAssembly>false</SignAssembly>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<ExpressionBlendVersion>3.0.1927.0</ExpressionBlendVersion>
<ApplicationIcon>GalaSoft.ico</ApplicationIcon>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<ManifestCertificateThumbprint>E112350DB048D8663E48E2F97B56A777EB7358FC</ManifestCertificateThumbprint>
<ManifestKeyFile>GalaSoft.MvvmLight.CheckVersion_TemporaryKey.pfx</ManifestKeyFile>
<GenerateManifests>true</GenerateManifests>
<SignManifests>false</SignManifests>
<IsWebBootstrapper>true</IsWebBootstrapper>
<StartupObject>GalaSoft.MvvmLight.CheckVersion.App</StartupObject>
<PublishUrl>ftp://galasoft.ch/play/CheckVersion/</PublishUrl>
<Install>true</Install>
<InstallFrom>Web</InstallFrom>
<UpdateEnabled>true</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<InstallUrl>http://www.galasoft.ch/play/CheckVersion/</InstallUrl>
<SupportUrl>http://www.galasoft.ch/mvvm/getstarted</SupportUrl>
<ErrorReportUrl>http://www.galasoft.ch/contact</ErrorReportUrl>
<ProductName>CheckVersion</ProductName>
<PublisherName>Laurent Bugnion %28GalaSoft%29</PublisherName>
<SuiteName>MVVM Light Toolkit</SuiteName>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.html</WebPage>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<PublishWizardCompleted>true</PublishWizardCompleted>
<BootstrapperEnabled>true</BootstrapperEnabled>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=3e875cdb3903c512, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Resources\Binaries\GalaSoft.MvvmLight.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UIAutomationProvider">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationFramework">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\Brushes.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\Default.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\Icons.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Include="MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<Compile Include="Model\IVersionService.cs" />
<Compile Include="Model\VersionService.cs" />
<Compile Include="ViewModel\Commands.cs" />
<Compile Include="ViewModel\VersionViewModel.cs" />
<Compile Include="ViewModel\ViewModelLocator.cs" />
<Compile Include="Properties\AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="ViewModel\MainViewModel.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>PublicResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>PublicSettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<None Include="Settings.StyleCop" />
<AppDesigner Include="Properties\" />
</ItemGroup>
<ItemGroup>
<BlendEmbeddedFont Include="Fonts\SNAP____.TTF">
<IsSystemFont>True</IsSystemFont>
<All>True</All>
<AutoFill>True</AutoFill>
<Characters>
</Characters>
<Uppercase>True</Uppercase>
<Lowercase>True</Lowercase>
<Numbers>True</Numbers>
<Punctuation>True</Punctuation>
</BlendEmbeddedFont>
<Resource Include="GalaSoft.ico" />
</ItemGroup>
<ItemGroup>
<Resource Include="License.txt" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
</ItemGroup>
<ItemGroup>
<WCFMetadata Include="Service References\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\MvvmLightToolkit.Setup.Configure\MvvmLightToolkit.Setup.Configure.csproj">
<Project>{0DCB8E16-0315-4E6F-8D05-6A146A2FAE6E}</Project>
<Name>MvvmLightToolkit.Setup.Configure</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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>
-->
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Expression\Blend\3.0\WPF\Microsoft.Expression.Blend.WPF.targets" />
</Project>

Двоичный файл не отображается.

Двоичный файл не отображается.

До

Ширина:  |  Высота:  |  Размер: 7.2 KiB

Просмотреть файл

@ -1,7 +0,0 @@
Copyright (c) 2009 Laurent Bugnion (GalaSoft), laurent@galasoft.ch
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Просмотреть файл

@ -1,402 +0,0 @@
<Window x:Class="GalaSoft.MvvmLight.CheckVersion.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:prop="clr-namespace:GalaSoft.MvvmLight.CheckVersion.Properties"
mc:Ignorable="d"
DataContext="{Binding Main, Source={StaticResource Locator}}"
Title="{Binding Source={x:Static prop:Resources.WindowTitle}}"
Background="{x:Null}"
Style="{StaticResource MainWindowStyle}">
<Window.Resources>
<Storyboard x:Key="ShutdownStoryboard">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:01"
Value="-0.5"
KeySpline="0.4,0,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:02"
Value="0.1"
KeySpline="0.4,0.1,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:03"
Value="-0.01"
KeySpline="0.4,0.1,0.6,0.9" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:01"
Value="0.5"
KeySpline="0.4,0,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:02"
Value="0.1"
KeySpline="0.4,0.1,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:03"
Value="0.01"
KeySpline="0.4,0.1,0.6,0.9" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="LayoutRoot"
Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:01"
Value="0.7"
KeySpline="0.4,0,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:02"
Value="0.3"
KeySpline="0.4,0.1,0.6,0.9" />
<SplineDoubleKeyFrame KeyTime="00:00:03"
Value="0"
KeySpline="0.4,0.1,0.6,0.9" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ProcessingStoryboard"
AutoReverse="True"
RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="GalaSoftButton"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
<SplineDoubleKeyFrame KeyTime="00:00:01"
Value="360"
KeySpline="0.51,0,1,1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ClientVersionHover">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="20" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="70" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="20" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-15" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="1.5" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="1.5" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-30" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ClientVersionHoverOut">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ServerVersionHover">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-32" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-36" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-24" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="-15" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="1.5" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="1.5" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeySpline="0.4,0,0.6,1"
KeyTime="00:00:00.5000000"
Value="25" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
<Storyboard x:Key="ServerVersionHoverOut">
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ClientVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[2].(RotateTransform.Angle)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Storyboard.TargetName="ServerVersionPanel"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<SplineDoubleKeyFrame KeyTime="00:00:00.5000000"
Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Window.Resources>
<Window.Triggers>
<EventTrigger RoutedEvent="Mouse.MouseEnter"
SourceName="ClientVersionPanelTrigger">
<BeginStoryboard x:Name="ClientVersionHover_BeginStoryboard"
Storyboard="{StaticResource ClientVersionHover}" />
<StopStoryboard BeginStoryboardName="ClientVersionHoverOut_BeginStoryboard" />
<StopStoryboard BeginStoryboardName="ClientVersionHoverOut_BeginStoryboard" />
</EventTrigger>
<EventTrigger RoutedEvent="Mouse.MouseLeave"
SourceName="ClientVersionPanelTrigger">
<BeginStoryboard x:Name="ClientVersionHoverOut_BeginStoryboard"
Storyboard="{StaticResource ClientVersionHoverOut}" />
<StopStoryboard BeginStoryboardName="ClientVersionHover_BeginStoryboard" />
<StopStoryboard BeginStoryboardName="ClientVersionHover_BeginStoryboard" />
</EventTrigger>
<EventTrigger RoutedEvent="Mouse.MouseEnter"
SourceName="ServerVersionPanelTrigger">
<BeginStoryboard x:Name="ServerVersionHover_BeginStoryboard"
Storyboard="{StaticResource ServerVersionHover}" />
<StopStoryboard BeginStoryboardName="ServerVersionHoverOut_BeginStoryboard" />
</EventTrigger>
<EventTrigger RoutedEvent="Mouse.MouseLeave"
SourceName="ServerVersionPanelTrigger">
<BeginStoryboard x:Name="ServerVersionHoverOut_BeginStoryboard"
Storyboard="{StaticResource ServerVersionHoverOut}" />
<StopStoryboard BeginStoryboardName="ServerVersionHover_BeginStoryboard" />
</EventTrigger>
</Window.Triggers>
<Grid x:Name="LayoutRoot"
RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Grid.RenderTransform>
<Grid.RowDefinitions>
<RowDefinition Height="40" />
<RowDefinition Height="111" />
<RowDefinition Height="*" />
<RowDefinition Height="70" />
</Grid.RowDefinitions>
<Path Grid.RowSpan="4"
Data="M0.5,35.5 C0.5,16.170034 16.170034,0.5 35.5,0.5 L248.5,0.5 C267.82997,0.5 283.5,16.170034 283.5,35.5 L283.5,282.5 C283.5,301.82997 267.82997,317.5 248.5,317.5 L35.5,317.5 C16.170034,317.5 0.5,301.82997 0.5,282.5 z"
Style="{StaticResource BackgroundPathStyle}" />
<Border Style="{StaticResource TitleBarBorderStyle}">
<Grid>
<Button ToolTip="Close"
Content="Close"
Style="{StaticResource CloseButtonStyle}"
Command="{Binding ShutdownCommand}" />
</Grid>
</Border>
<StackPanel x:Name="ClientVersionPanel"
Style="{StaticResource ClientVersionStringPanelStyle}"
Grid.Row="1">
<StackPanel.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</StackPanel.RenderTransform>
<TextBlock Text="Version on this PC:"
Style="{StaticResource ClientVersionStringLabelStyle}" />
<TextBlock Text="{Binding VersionOnClient.VersionString}"
Style="{StaticResource VersionStringStyle}" />
</StackPanel>
<StackPanel x:Name="ServerVersionPanel"
Style="{StaticResource ServerVersionStringPanelStyle}"
Grid.Row="2">
<StackPanel.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</StackPanel.RenderTransform>
<TextBlock Text="Version on the server:"
Style="{StaticResource ServerVersionStringLabelStyle}" />
<TextBlock Text="{Binding VersionOnServer.VersionString}"
Style="{StaticResource VersionStringStyle}" />
</StackPanel>
<Rectangle x:Name="ClientVersionPanelTrigger"
Style="{StaticResource VersionPanelTriggerStyle}"
Grid.Row="1" />
<Rectangle x:Name="ServerVersionPanelTrigger"
Grid.Row="2"
Style="{StaticResource VersionPanelTriggerStyle}" />
<Button Content="Check Server"
Grid.Row="3"
ToolTip="Check the version on the server"
Command="{Binding CheckServerCommand}"
Style="{StaticResource CheckServerButtonStyle}"
IsEnabled="{Binding IsIdle}" />
<Path Grid.RowSpan="2"
Data="M283.50001,106.16666 L283.5,282.5 C283.5,301.82997 267.82997,317.5 248.5,317.5 L35.5,317.5 C16.170034,317.5 0.5,301.82997 0.5,282.5 124.98654,236.32567 218.51229,177.21033 283.50001,106.16666 z"
Grid.Row="2"
IsHitTestVisible="False"
Style="{StaticResource HighlightStyle}" />
<TextBlock Text="{Binding StatusMessage}"
Grid.Row="2"
Style="{StaticResource StatusMessageStyle}"
ToolTip="{Binding StatusMessage, Mode=Default}" />
<Button x:Name="GalaSoftButton"
Style="{StaticResource GalaSoftButtonStyle}"
ToolTip="Go to the Get Started web page"
Content="GalaSoft"
Command="{Binding NavigateToUrlCommand}"
CommandParameter="{Binding GetStartedLocation}"
RenderTransformOrigin="0.5,0.5">
<Button.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Button.RenderTransform>
</Button>
</Grid>
</Window>

Просмотреть файл

@ -1,102 +0,0 @@
// ****************************************************************************
// <copyright file="MainWindow.xaml.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.ComponentModel;
using System.Windows.Input;
using System.Windows.Media.Animation;
using GalaSoft.MvvmLight.CheckVersion.ViewModel;
using GalaSoft.MvvmLight.Messaging;
namespace GalaSoft.MvvmLight.CheckVersion
{
/// <summary>
/// This application's main window.
/// </summary>
public partial class MainWindow
{
private bool _animationExecuted;
/// <summary>
/// Initializes a new instance of the MainWindow class.
/// </summary>
public MainWindow()
{
InitializeComponent();
var requestMessage = new CommandMessage<Func<bool>>(
this,
InitiateShutdownAnimation,
Commands.RequestShutdownNotification);
Messenger.Default.Send(requestMessage);
var vm = (MainViewModel) DataContext;
vm.PropertyChanged += VMPropertyChanged;
}
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
{
base.OnMouseLeftButtonDown(e);
DragMove();
}
private bool InitiateShutdownAnimation()
{
if (_animationExecuted)
{
return true;
}
var sbd = TryFindResource("ShutdownStoryboard") as Storyboard;
if (sbd == null)
{
return true;
}
sbd.Completed += (s, e) =>
{
_animationExecuted = true;
var message = new CommandMessage(this, Commands.RequestShutdown);
Messenger.Default.Send(message);
};
sbd.Begin();
return false;
}
private void VMPropertyChanged(object sender, PropertyChangedEventArgs e)
{
if (e.PropertyName
== MainViewModel.IsProcessingPropertyName)
{
var sbd = TryFindResource("ProcessingStoryboard") as Storyboard;
if (sbd != null)
{
var vm = (MainViewModel) DataContext;
if (vm.IsProcessing)
{
sbd.Begin();
}
else
{
sbd.Stop();
}
}
}
}
}
}

Просмотреть файл

@ -1,26 +0,0 @@
// ****************************************************************************
// <copyright file="IVersionService.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
namespace GalaSoft.MvvmLight.CheckVersion.Model
{
public interface IVersionService
{
void GetVersionOnClient(Action<Version> callback);
void GetVersionOnServer(Action<Version> callback);
}
}

Просмотреть файл

@ -1,110 +0,0 @@
// ****************************************************************************
// <copyright file="VersionService.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Xml;
using System.Xml.Linq;
using GalaSoft.MvvmLight.CheckVersion.Properties;
namespace GalaSoft.MvvmLight.CheckVersion.Model
{
public class VersionService : IVersionService, IDisposable
{
private WebClient _client;
public VersionService()
{
_client = new WebClient();
_client.DownloadStringCompleted += ClientDownloadStringCompleted;
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
public void GetVersionOnClient(Action<Version> callback)
{
if (callback == null)
{
return;
}
var fileHandler = new MvvmLightToolkit.Setup.Configure.Helpers.SettingsFileHandler();
var version = new Version(fileHandler.SavedSettings.InstalledVersion);
callback(version);
}
public void GetVersionOnServer(Action<Version> callback)
{
if (callback == null)
{
return;
}
var uri = new Uri(Settings.Default.VersionFileLocation);
_client.DownloadStringAsync(uri, callback);
}
protected virtual void Dispose(bool isDisposing)
{
if (isDisposing)
{
_client.Dispose();
_client = null;
}
}
private static void ClientDownloadStringCompleted(object sender, DownloadStringCompletedEventArgs e)
{
var callback = e.UserState as Action<Version>;
if (callback == null)
{
return;
}
if (e.Error != null)
{
callback(null);
}
var result = e.Result;
if (result.StartsWith("", StringComparison.Ordinal))
{
result = result.Substring(3);
}
try
{
var document = XDocument.Load(new StringReader(result));
var versionString = from v
in document.Descendants("version")
select v;
var version = new Version(versionString.First().Value);
callback(version);
}
catch (XmlException)
{
callback(null);
}
}
}
}

Просмотреть файл

@ -1,70 +0,0 @@
// ****************************************************************************
// <copyright file="AssemblyInfo.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// <LastBaseLevel>BL0002</LastBaseLevel>
// ****************************************************************************
using System;
using System.Diagnostics.CodeAnalysis;
using System.Reflection;
using System.Resources;
using System.Runtime.InteropServices;
using System.Windows;
[assembly: AssemblyTitle("GalaSoft.MvvmLight.CheckVersion")]
[assembly: AssemblyDescription("Checks the version of the MVVM Light Toolkit installed on the current computer and compares it to the version on the server.")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Laurent Bugnion (GalaSoft)")]
[assembly: AssemblyProduct("GalaSoft.MvvmLight.CheckVersion")]
[assembly: AssemblyCopyright("Copyright © GalaSoft Laurent Bugnion 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
[assembly: ComVisible(false)]
[assembly: CLSCompliant(true)]
[assembly: NeutralResourcesLanguage("en-US",
UltimateResourceFallbackLocation.MainAssembly)]
[assembly: ThemeInfo(ResourceDictionaryLocation.None,
ResourceDictionaryLocation.SourceAssembly)]
[assembly: AssemblyVersion("1.0.1.*")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.CheckVersion",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.CheckVersion.Model",
MessageId = "Mvvm")]
[module: SuppressMessage("Microsoft.Naming",
"CA1704:IdentifiersShouldBeSpelledCorrectly",
Scope = "namespace",
Target = "GalaSoft.MvvmLight.CheckVersion.ViewModel",
MessageId = "Mvvm")]

Просмотреть файл

@ -1,90 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GalaSoft.MvvmLight.CheckVersion.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
public class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("GalaSoft.MvvmLight.CheckVersion.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Error!.
/// </summary>
public static string ErrorGettingVersion {
get {
return ResourceManager.GetString("ErrorGettingVersion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to N/A.
/// </summary>
public static string VersionNotAvailable {
get {
return ResourceManager.GetString("VersionNotAvailable", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to MVVM Light Toolkit Version Check.
/// </summary>
public static string WindowTitle {
get {
return ResourceManager.GetString("WindowTitle", resourceCulture);
}
}
}
}

Просмотреть файл

@ -1,132 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ErrorGettingVersion" xml:space="preserve">
<value>Error!</value>
<comment>Error!</comment>
</data>
<data name="VersionNotAvailable" xml:space="preserve">
<value>N/A</value>
<comment>Not loaded yet</comment>
</data>
<data name="WindowTitle" xml:space="preserve">
<value>MVVM Light Toolkit Version Check</value>
<comment>MVVM Light Toolkit Version Check</comment>
</data>
</root>

Просмотреть файл

@ -1,50 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace GalaSoft.MvvmLight.CheckVersion.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default {
get {
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://www.galasoft.ch/mvvm/resources/Setup/mvvm-light-version.xml")]
public string VersionFileLocation {
get {
return ((string)(this["VersionFileLocation"]));
}
set {
this["VersionFileLocation"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("http://www.galasoft.ch/mvvm/getstarted")]
public string GetStartedLocation {
get {
return ((string)(this["GetStartedLocation"]));
}
set {
this["GetStartedLocation"] = value;
}
}
}
}

Просмотреть файл

@ -1,12 +0,0 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="GalaSoft.MvvmLight.CheckVersion.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="VersionFileLocation" Type="System.String" Scope="User">
<Value Profile="(Default)">http://www.galasoft.ch/mvvm/resources/Setup/mvvm-light-version.xml</Value>
</Setting>
<Setting Name="GetStartedLocation" Type="System.String" Scope="User">
<Value Profile="(Default)">http://www.galasoft.ch/mvvm/getstarted</Value>
</Setting>
</Settings>
</SettingsFile>

Просмотреть файл

@ -1,54 +0,0 @@
<StyleCopSettings Version="4.3">
<Parsers>
<Parser ParserId="Microsoft.StyleCop.CSharp.CsParser">
<ParserSettings>
<BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
</ParserSettings>
</Parser>
</Parsers>
<Analyzers>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
<Rules>
<Rule Name="ElementsMustBeDocumented">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings>
<BooleanProperty Name="IgnorePrivates">True</BooleanProperty>
<BooleanProperty Name="IgnoreInternals">True</BooleanProperty>
</AnalyzerSettings>
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
<Rules>
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
<Rules>
<Rule Name="PrefixLocalCallsWithThis">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
<Rules>
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
</Analyzers>
</StyleCopSettings>

Просмотреть файл

@ -1,30 +0,0 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<LinearGradientBrush x:Key="CurrentBrush"
EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FF006C0C"
Offset="0" />
<GradientStop Color="#FF7AFF89"
Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="NotCurrentBrush"
EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFEC0303"
Offset="0" />
<GradientStop Color="#FFFF8080"
Offset="1" />
</LinearGradientBrush>
<LinearGradientBrush x:Key="NotLoadedBrush"
EndPoint="0.5,1"
StartPoint="0.5,0">
<GradientStop Color="#FFF48F00"
Offset="0" />
<GradientStop Color="#FFFFC067"
Offset="1" />
</LinearGradientBrush>
</ResourceDictionary>

Просмотреть файл

@ -1,344 +0,0 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<FontFamily x:Key="DisplayFont">/GalaSoft.MvvmLight.CheckVersion;Component/Fonts/#Snap ITC</FontFamily>
<Style x:Key="MainWindowStyle"
TargetType="{x:Type Window}">
<Setter Property="Width"
Value="284" />
<Setter Property="Height"
Value="318" />
<Setter Property="AllowsTransparency"
Value="True" />
<Setter Property="WindowStyle"
Value="None" />
<Setter Property="ResizeMode"
Value="NoResize" />
<Setter Property="Icon"
Value="/GalaSoft.MvvmLight.CheckVersion;Component/GalaSoft.ico" />
</Style>
<Style x:Key="TitleBarBorderStyle"
TargetType="{x:Type Border}">
<Setter Property="Cursor"
Value="SizeAll" />
<Setter Property="Background"
Value="{StaticResource NotLoadedBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsObsolete}"
Value="True">
<Setter Property="Background"
Value="{StaticResource NotCurrentBrush}" />
</DataTrigger>
<DataTrigger Binding="{Binding IsObsolete}"
Value="False">
<Setter Property="Background"
Value="{StaticResource CurrentBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="BackgroundPathStyle"
TargetType="{x:Type Path}">
<Setter Property="Opacity"
Value="0.8" />
<Setter Property="Fill"
Value="{StaticResource NotLoadedBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsObsolete}"
Value="True">
<Setter Property="Fill"
Value="{StaticResource NotCurrentBrush}" />
</DataTrigger>
<DataTrigger Binding="{Binding IsObsolete}"
Value="False">
<Setter Property="Fill"
Value="{StaticResource CurrentBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="VersionStringPanelStyle"
TargetType="{x:Type StackPanel}">
<Setter Property="VerticalAlignment"
Value="Center" />
<Setter Property="Opacity"
Value="0.6" />
<Setter Property="RenderTransformOrigin"
Value="0.5,0.5" />
</Style>
<Style x:Key="ClientVersionStringPanelStyle"
TargetType="{x:Type StackPanel}"
BasedOn="{StaticResource VersionStringPanelStyle}">
<Setter Property="Margin"
Value="10,0,10,20" />
<Setter Property="VerticalAlignment"
Value="Bottom" />
</Style>
<Style x:Key="ServerVersionStringPanelStyle"
TargetType="{x:Type StackPanel}"
BasedOn="{StaticResource VersionStringPanelStyle}">
<Setter Property="Margin"
Value="10,0" />
<Setter Property="VerticalAlignment"
Value="Top" />
</Style>
<Style x:Key="VersionStringLabelStyle"
TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily"
Value="{StaticResource DisplayFont}" />
<Setter Property="FontSize"
Value="12" />
<Setter Property="HorizontalAlignment"
Value="Left" />
</Style>
<Style x:Key="ClientVersionStringLabelStyle"
TargetType="{x:Type TextBlock}"
BasedOn="{StaticResource VersionStringLabelStyle}">
<Setter Property="HorizontalAlignment"
Value="Right" />
<Setter Property="Margin"
Value="0,0,40,0" />
</Style>
<Style x:Key="ServerVersionStringLabelStyle"
TargetType="{x:Type TextBlock}"
BasedOn="{StaticResource VersionStringLabelStyle}">
<Setter Property="Margin"
Value="40,0,0,0" />
</Style>
<Style x:Key="VersionStringStyle"
TargetType="{x:Type TextBlock}">
<Setter Property="FontFamily"
Value="{StaticResource DisplayFont}" />
<Setter Property="FontSize"
Value="29.333" />
<Setter Property="HorizontalAlignment"
Value="Center" />
</Style>
<Style x:Key="VersionPanelTriggerStyle"
TargetType="{x:Type Rectangle}">
<Setter Property="Fill">
<Setter.Value>
<SolidColorBrush />
</Setter.Value>
</Setter>
</Style>
<ControlTemplate x:Key="CheckServerButtonTemplate"
TargetType="{x:Type Button}">
<Border x:Name="Root"
BorderBrush="{TemplateBinding BorderBrush}"
Background="{TemplateBinding Background}"
BorderThickness="3"
CornerRadius="0,0,30,30"
RenderTransformOrigin="0.5,0.5">
<Border.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Border.RenderTransform>
<ContentPresenter HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Border>
<ControlTemplate.Triggers>
<Trigger Property="IsPressed"
Value="True">
<Setter Property="RenderTransform"
TargetName="Root">
<Setter.Value>
<TransformGroup>
<ScaleTransform ScaleX="0.95"
ScaleY="0.95" />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style x:Key="CheckServerButtonStyle"
TargetType="{x:Type Button}">
<Setter Property="Cursor"
Value="Hand" />
<Setter Property="Margin"
Value="10" />
<Setter Property="Template"
Value="{StaticResource CheckServerButtonTemplate}" />
<Setter Property="FontFamily"
Value="{DynamicResource DisplayFont}" />
<Setter Property="FontSize"
Value="21.333" />
<Setter Property="Background"
Value="Transparent" />
<Setter Property="Foreground"
Value="#CC000000" />
<Setter Property="BorderBrush"
Value="{StaticResource NotLoadedBrush}" />
<Style.Triggers>
<Trigger Property="IsEnabled"
Value="False">
<Setter Property="Background"
Value="#66FFFFFF" />
<Setter Property="Opacity"
Value="0.4" />
</Trigger>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Background"
Value="#66FFFFFF" />
<Setter Property="Foreground"
Value="Black" />
</Trigger>
<DataTrigger Binding="{Binding IsObsolete}"
Value="True">
<Setter Property="BorderBrush"
Value="{StaticResource NotCurrentBrush}" />
</DataTrigger>
<DataTrigger Binding="{Binding IsObsolete}"
Value="False">
<Setter Property="BorderBrush"
Value="{StaticResource CurrentBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
<ControlTemplate x:Key="ContentButtonTemplate"
TargetType="{x:Type Button}">
<Grid Background="#00000000">
<Rectangle x:Name="rectangle"
Fill="{TemplateBinding Background}"
Opacity="0.7"
RenderTransformOrigin="0.5,0.5">
<Rectangle.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Rectangle.RenderTransform>
</Rectangle>
</Grid>
<ControlTemplate.Triggers>
<Trigger Property="IsMouseOver"
Value="True">
<Setter Property="Opacity"
TargetName="rectangle"
Value="1" />
</Trigger>
<Trigger Property="IsPressed"
Value="True">
<Setter Property="RenderTransform"
TargetName="rectangle">
<Setter.Value>
<TransformGroup>
<ScaleTransform ScaleX="0.9"
ScaleY="0.9" />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Setter.Value>
</Setter>
</Trigger>
</ControlTemplate.Triggers>
</ControlTemplate>
<Style x:Key="GalaSoftButtonStyle"
TargetType="{x:Type Button}">
<Setter Property="Margin"
Value="10,15,0,-25" />
<Setter Property="Width"
Value="50" />
<Setter Property="Height"
Value="50" />
<Setter Property="HorizontalAlignment"
Value="Left" />
<Setter Property="Cursor"
Value="Hand" />
<Setter Property="Template"
Value="{StaticResource ContentButtonTemplate}" />
<Setter Property="Background"
Value="{StaticResource GalaSoftHead}" />
</Style>
<Style x:Key="CloseButtonStyle"
TargetType="{x:Type Button}">
<Setter Property="HorizontalAlignment"
Value="Right" />
<Setter Property="Width"
Value="30" />
<Setter Property="Height"
Value="30" />
<Setter Property="Margin"
Value="0,5,5,5" />
<Setter Property="Cursor"
Value="Hand" />
<Setter Property="Background"
Value="{StaticResource XBrush}" />
<Setter Property="Template"
Value="{StaticResource ContentButtonTemplate}" />
</Style>
<Style x:Key="StatusMessageStyle"
TargetType="{x:Type TextBlock}">
<Setter Property="TextTrimming"
Value="CharacterEllipsis" />
<Setter Property="HorizontalAlignment"
Value="Center" />
<Setter Property="FontSize"
Value="18.667" />
<Setter Property="FontFamily"
Value="Segoe UI" />
<Setter Property="FontStyle"
Value="Italic" />
<Setter Property="FontWeight"
Value="Bold" />
<Setter Property="VerticalAlignment"
Value="Bottom" />
<Setter Property="Foreground"
Value="{StaticResource NotLoadedBrush}" />
<Style.Triggers>
<DataTrigger Binding="{Binding IsObsolete}"
Value="True">
<Setter Property="Foreground"
Value="{StaticResource NotCurrentBrush}" />
</DataTrigger>
<DataTrigger Binding="{Binding IsObsolete}"
Value="False">
<Setter Property="Foreground"
Value="{StaticResource CurrentBrush}" />
</DataTrigger>
</Style.Triggers>
</Style>
<Style x:Key="HighlightStyle"
TargetType="{x:Type Path}">
<Setter Property="Stretch"
Value="Fill" />
<Setter Property="Margin"
Value="5,-45,5,5" />
<Setter Property="Fill"
Value="#4CFFFFFF" />
</Style>
</ResourceDictionary>

Просмотреть файл

@ -1,78 +0,0 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<DrawingBrush x:Key="XBrush"
Stretch="Uniform">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="#FFFFFFFF"
Geometry="F1 M 46.08,3.00755L 41.91,4.41008L 28.4325,16.4925L 39.66,31.6426L 44.46,33.8851L 24.8175,36.48L 28.215,34.1401L 21.21,22.0275L 16.5675,32.3625L 18.585,34.56L 0,32.6025L 3.17999,30.8251L 15.6525,16.095L 8.41499,3.91502L 3.42,1.77007L 23.955,4.57764e-005L 20.6025,3.14256L 24.96,12.2026L 29.7225,3.63756L 26.505,1.44005L 46.08,3.00755 Z " />
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
<DrawingBrush x:Key="GalaSoftHead"
Stretch="Uniform"
TileMode="None">
<DrawingBrush.Drawing>
<DrawingGroup>
<GeometryDrawing Brush="#FFA06818"
Geometry="F1 M 421.125,215.652L 468.292,128.542L 507.792,262.042C 504.125,258.434 500.458,254.825 496.903,251.618C 493.347,248.411 489.903,245.605 486.181,242.827C 482.458,240.049 478.458,237.3 473.903,234.694C 469.347,232.089 464.236,229.626 459.486,227.536C 454.736,225.445 450.347,223.727 446.042,222.238C 441.736,220.749 437.514,219.489 433.986,218.544C 430.458,217.599 427.625,216.969 425.597,216.539C 423.569,216.11 422.347,215.881 421.125,215.652 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="15"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FFFFFFFF"
Geometry="F1 M 279.75,262.833L 319,129.083L 367,217.583C 360.417,218.917 353.833,220.25 348.083,221.75C 342.333,223.25 337.417,224.917 332.833,226.75C 328.25,228.583 324,230.583 319.083,233.333C 314.167,236.083 308.583,239.583 303.625,243.25C 298.667,246.917 294.333,250.75 289.972,255.365C 285.611,259.979 281.222,265.375 276.833,270.771L 279.75,262.833 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="15"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FFFFFFFF"
Geometry="F1 M 284.125,397.979L 395.625,328.979L 508.125,395.479L 498.125,405.979C 494.708,408.646 491.292,411.313 487.75,413.979C 484.208,416.646 480.542,419.313 476.417,421.896C 472.292,424.479 467.708,426.979 463.458,429.104C 459.208,431.229 455.292,432.979 451.125,434.604C 446.958,436.229 442.542,437.729 437.625,439.021C 432.708,440.313 427.292,441.396 422.708,442.104C 418.125,442.813 414.375,443.146 409.083,443.396C 403.792,443.646 396.958,443.813 390.708,443.688C 384.458,443.563 378.792,443.146 373.333,442.479C 367.875,441.813 362.625,440.896 357.292,439.604C 351.958,438.313 346.542,436.646 341.583,434.938C 336.625,433.229 332.125,431.479 327.875,429.646C 323.625,427.813 319.625,425.896 316.083,423.938C 312.542,421.979 309.458,419.979 306.5,417.938C 303.542,415.896 300.708,413.813 298.208,411.688C 295.708,409.563 293.542,407.396 291.75,405.646C 289.958,403.896 288.542,402.563 287.333,401.354C 286.125,400.146 285.125,399.063 284.125,397.979 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="15"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FFA06818"
Geometry="F1 M 282.167,400.104L 394.167,331.438L 394.167,217.438C 388.611,217.438 383.056,217.438 376.944,218.104C 370.833,218.771 364.167,220.104 357.611,221.66C 351.056,223.215 344.611,224.993 338.278,227.326C 331.944,229.66 325.722,232.549 319.278,236.215C 312.833,239.882 306.167,244.326 300.167,248.882C 294.167,253.438 288.833,258.104 283.944,263.771C 279.056,269.438 274.611,276.104 270.722,282.66C 266.833,289.215 263.5,295.66 261.389,302.215C 259.278,308.771 258.389,315.438 257.722,322.549C 257.056,329.66 256.611,337.215 256.944,343.882C 257.278,350.549 258.389,356.326 260.167,362.104C 261.944,367.882 264.389,373.66 267.056,378.66C 269.722,383.66 272.611,387.882 275.167,391.326C 277.722,394.771 279.944,397.438 282.167,400.104 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="8"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Brush="#FF000000"
Geometry="F1 M 506.833,396.104L 395.5,330.104L 395.5,218.096C 405.056,219.21 414.611,220.324 423.167,221.77C 431.722,223.215 439.278,224.993 446.944,227.438C 454.611,229.882 462.389,232.993 469.5,236.438C 476.611,239.882 483.056,243.66 488.5,247.66C 493.944,251.66 498.389,255.882 503.389,260.771C 508.389,265.66 513.944,271.215 517.944,276.993C 521.944,282.771 524.389,288.771 527.167,295.882C 529.944,302.993 533.055,311.215 534.389,319.438C 535.722,327.66 535.278,335.882 533.833,343.771C 532.389,351.66 529.944,359.215 527.5,365.326C 525.055,371.438 522.611,376.104 520.055,379.993C 517.5,383.882 514.833,386.993 512.611,389.549C 510.389,392.104 508.611,394.104 506.833,396.104 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="8"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Geometry="M 379.333,369.063L 396,377.604L 396,404.271L 369.5,420.604L 355.833,412.604M 396.042,378.646L 396,378.604L 396,404.271L 422.833,419.771L 436.5,412.438M 396,378.438L 412.833,368.938">
<GeometryDrawing.Pen>
<Pen Thickness="5"
StartLineCap="Round"
EndLineCap="Round"
LineJoin="Round"
Brush="#FFFF8080" />
</GeometryDrawing.Pen>
</GeometryDrawing>
<GeometryDrawing Geometry="F1 M 395.167,215.333C 471.198,215.333 532.833,266.545 532.833,329.719C 532.833,392.892 471.198,444.104 395.167,444.104C 319.135,444.104 257.5,392.892 257.5,329.719C 257.5,266.545 319.135,215.333 395.167,215.333 Z ">
<GeometryDrawing.Pen>
<Pen Thickness="15"
LineJoin="Round"
Brush="#FF000000" />
</GeometryDrawing.Pen>
</GeometryDrawing>
</DrawingGroup>
</DrawingBrush.Drawing>
</DrawingBrush>
</ResourceDictionary>

Просмотреть файл

@ -1,26 +0,0 @@
// ****************************************************************************
// <copyright file="Commands.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
namespace GalaSoft.MvvmLight.CheckVersion.ViewModel
{
public static class Commands
{
public static readonly string RequestShutdown = Guid.NewGuid().ToString();
public static readonly string RequestShutdownNotification = Guid.NewGuid().ToString();
}
}

Просмотреть файл

@ -1,285 +0,0 @@
// ****************************************************************************
// <copyright file="MainViewModel.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using GalaSoft.MvvmLight.CheckVersion.Model;
using GalaSoft.MvvmLight.CheckVersion.Properties;
using GalaSoft.MvvmLight.Command;
using GalaSoft.MvvmLight.Messaging;
namespace GalaSoft.MvvmLight.CheckVersion.ViewModel
{
public class MainViewModel : ViewModelBase
{
/// <summary>
/// The <see cref="IsIdle" /> property's name.
/// </summary>
public const string IsIdlePropertyName = "IsIdle";
/// <summary>
/// The <see cref="IsObsolete" /> property's name.
/// </summary>
public const string IsObsoletePropertyName = "IsObsolete";
/// <summary>
/// The <see cref="IsProcessing" /> property's name.
/// </summary>
public const string IsProcessingPropertyName = "IsProcessing";
/// <summary>
/// The <see cref="StatusMessage" /> property's name.
/// </summary>
public const string StatusMessagePropertyName = "StatusMessage";
/// <summary>
/// The <see cref="VersionOnClient" /> property's name.
/// </summary>
public const string VersionOnClientPropertyName = "VersionOnClient";
/// <summary>
/// The <see cref="VersionOnServer" /> property's name.
/// </summary>
public const string VersionOnServerPropertyName = "VersionOnServer";
private readonly IVersionService _service;
private bool _isProcessing;
private string _statusMessage = "Not checked yet";
private VersionViewModel _versionOnClient;
private VersionViewModel _versionOnServer;
/// <summary>
/// Initializes a new instance of the MainViewModel class.
/// </summary>
[SuppressMessage(
"Microsoft.Usage",
"CA2214:DoNotCallOverridableMethodsInConstructors",
Justification = "Raising PropertyChanged in base class")]
public MainViewModel()
{
if (IsInDesignMode)
{
VersionOnServer = new VersionViewModel(new Version("1.1.1.1"));
VersionOnClient = new VersionViewModel(new Version("1.1.1.1"));
}
else
{
_service = new VersionService();
_service.GetVersionOnClient(v => VersionOnClient = new VersionViewModel(v));
CheckServerCommand = new RelayCommand(() =>
{
StatusMessage = "Checking server";
IsProcessing = true;
_service.GetVersionOnServer(v =>
{
VersionOnServer = new VersionViewModel(v);
IsProcessing = false;
if (IsObsolete == null)
{
StatusMessage = "Not checked yet";
return;
}
StatusMessage = IsObsolete.Value ? "You should update" : "Up to date";
});
});
ShutdownCommand = new RelayCommand(SendShutdown);
NavigateToUrlCommand = new RelayCommand<string>(u => Process.Start(u));
VersionOnServer = new VersionViewModel(VersionViewModel.Empty);
}
}
public RelayCommand CheckServerCommand
{
get;
private set;
}
[SuppressMessage(
"Microsoft.Performance",
"CA1822:MarkMembersAsStatic",
Justification = "This member is needed for binding")]
public string GetStartedLocation
{
get
{
return Settings.Default.GetStartedLocation;
}
}
public bool IsIdle
{
get
{
return !IsProcessing;
}
}
/// <summary>
/// Gets the IsObsolete property.
/// </summary>
public bool? IsObsolete
{
get
{
if (VersionOnServer == null
|| VersionOnClient == null
|| VersionOnServer.Model == null
|| VersionOnClient.Model == null
|| VersionOnServer.Model == VersionViewModel.Empty)
{
return null;
}
return VersionOnClient.Model < VersionOnServer.Model;
}
}
public bool IsProcessing
{
get
{
return _isProcessing;
}
private set
{
if (_isProcessing == value)
{
return;
}
_isProcessing = value;
RaisePropertyChanged(IsProcessingPropertyName);
RaisePropertyChanged(IsIdlePropertyName);
}
}
public RelayCommand<string> NavigateToUrlCommand
{
get;
private set;
}
public RelayCommand ShutdownCommand
{
get;
private set;
}
/// <summary>
/// Gets the StatusMessage property.
/// Changes to that property's value raise the PropertyChanged event.
/// This property's value is broadcasted by the Messenger's default instance when it changes.
/// </summary>
public string StatusMessage
{
get
{
return _statusMessage;
}
private set
{
if (_statusMessage == value)
{
return;
}
_statusMessage = value;
RaisePropertyChanged(StatusMessagePropertyName);
}
}
/// <summary>
/// Gets the VersionOnClient property.
/// Changes to that property's value raise the PropertyChanged event.
/// </summary>
public VersionViewModel VersionOnClient
{
get
{
return _versionOnClient;
}
private set
{
if (_versionOnClient == value)
{
return;
}
_versionOnClient = value;
RaisePropertyChanged(VersionOnClientPropertyName);
RaisePropertyChanged(IsObsoletePropertyName);
}
}
/// <summary>
/// Gets the VersionOnServer property.
/// Changes to that property's value raise the PropertyChanged event.
/// </summary>
public VersionViewModel VersionOnServer
{
get
{
return _versionOnServer;
}
private set
{
if (_versionOnServer == value)
{
return;
}
_versionOnServer = value;
RaisePropertyChanged(VersionOnServerPropertyName);
RaisePropertyChanged(IsObsoletePropertyName);
}
}
public bool CheckServer()
{
if (CheckServerCommand.CanExecute(null))
{
CheckServerCommand.Execute(null);
return true;
}
return false;
}
private void SendShutdown()
{
var commandMessage = new CommandMessage(this, Commands.RequestShutdown);
Messenger.Default.Send(commandMessage);
}
}
}

Просмотреть файл

@ -1,81 +0,0 @@
// ****************************************************************************
// <copyright file="VersionViewModel.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System;
using GalaSoft.MvvmLight.CheckVersion.Properties;
namespace GalaSoft.MvvmLight.CheckVersion.ViewModel
{
public class VersionViewModel : ViewModelBase
{
/// <summary>
/// The <see cref="IsInError" /> property's name.
/// </summary>
public const string IsInErrorPropertyName = "IsInError";
/// <summary>
/// The <see cref="VersionString" /> property's name.
/// </summary>
public const string VersionStringPropertyName = "VersionString";
public static readonly Version Empty = new Version("0.0.0.0");
private readonly Version _model;
public VersionViewModel(Version model)
{
_model = model;
}
public bool IsInError
{
get
{
return Model == null;
}
}
public Version Model
{
get
{
return _model;
}
}
/// <summary>
/// Gets the VersionString property.
/// </summary>
public string VersionString
{
get
{
if (Model == null)
{
return Resources.ErrorGettingVersion;
}
if (Model == Empty)
{
return Resources.VersionNotAvailable;
}
return "V" + Model.Major
+ "." + Model.Minor
+ "." + Model.Build;
}
}
}
}

Просмотреть файл

@ -1,90 +0,0 @@
// ****************************************************************************
// <copyright file="ViewModelLocator.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>12.9.2009</date>
// <project>GalaSoft.MvvmLight.CheckVersion</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// ****************************************************************************
using System.Diagnostics.CodeAnalysis;
namespace GalaSoft.MvvmLight.CheckVersion.ViewModel
{
public class ViewModelLocator
{
private static MainViewModel _main;
/// <summary>
/// Initializes a new instance of the ViewModelLocator class.
/// </summary>
public ViewModelLocator()
{
CreateMain();
}
/// <summary>
/// Gets the Main property.
/// </summary>
public static MainViewModel MainStatic
{
get
{
if (_main == null)
{
CreateMain();
}
return _main;
}
}
/// <summary>
/// Gets the Main property.
/// </summary>
[SuppressMessage("Microsoft.Performance",
"CA1822:MarkMembersAsStatic",
Justification = "This non-static member is needed for data binding purposes.")]
public MainViewModel Main
{
get
{
return MainStatic;
}
}
/// <summary>
/// Provides a deterministic way to delete the Main property.
/// </summary>
public static void ClearMain()
{
_main.Dispose();
_main = null;
}
/// <summary>
/// Provides a deterministic way to create the Main property.
/// </summary>
public static void CreateMain()
{
if (_main == null)
{
_main = new MainViewModel();
}
}
/// <summary>
/// Cleans up all the resources.
/// </summary>
public static void Dispose()
{
ClearMain();
}
}
}

Просмотреть файл

@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="GalaSoft.MvvmLight.CheckVersion.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<GalaSoft.MvvmLight.CheckVersion.Properties.Settings>
<setting name="VersionFileLocation" serializeAs="String">
<value>http://www.galasoft.ch/mvvm/resources/Setup/mvvm-light-version.xml</value>
</setting>
<setting name="GetStartedLocation" serializeAs="String">
<value>http://www.galasoft.ch/mvvm/getstarted</value>
</setting>
</GalaSoft.MvvmLight.CheckVersion.Properties.Settings>
</userSettings>
</configuration>

Просмотреть файл

@ -0,0 +1,34 @@
# Ignore file for Visual Studio 2010
# use glob syntax
syntax: glob
# Ignore Studio files
*.obj
*.exe
*.pdb
*.user
*.aps
*.pch
*.vspscc
*_i.c
*_p.c
*.ncb
*.suo
*.tlb
*.tlh
*.bak
*.cache
*.ilk
*.log
*.lib
*.sbr
*.scc
[Bb]in
[Dd]ebug*/
obj/
[Rr]elease*/
_Resharper.*/
[Tt]est[Rr]esult*
[Bb]uild[Ll]og.*
*.[Pp]ublish.xml

Просмотреть файл

@ -1,14 +1,29 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight", "GalaSoft.MvvmLight\GalaSoft.MvvmLight.csproj", "{ADB28C09-8DE9-4006-80D5-74856EB4A48B}"
EndProject
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{B1E1F2CD-D999-4223-8F7F-80469E0B3875}"
ProjectSection(SolutionItems) = preProject
GalaSoft.MvvmLight.vsmdi = GalaSoft.MvvmLight.vsmdi
GalaSoft.MvvmLight1.vsmdi = GalaSoft.MvvmLight1.vsmdi
LocalTestRun.testrunconfig = LocalTestRun.testrunconfig
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Externals", "Externals", "{CE22CBE5-A263-463E-8BCD-A77A60995C0C}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{97B7C3DB-C0FB-4D7D-BA33-14E3F4E86BF6}"
ProjectSection(SolutionItems) = preProject
External\Silverlight\Microsoft.Silverlight.Testing.dll = External\Silverlight\Microsoft.Silverlight.Testing.dll
External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll = External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
External\Silverlight\System.Windows.Interactivity.dll = External\Silverlight\System.Windows.Interactivity.dll
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{30B76B96-22B6-46F7-9D74-5EB2A954452A}"
ProjectSection(SolutionItems) = preProject
External\WPF\System.Windows.Interactivity.dll = External\WPF\System.Windows.Interactivity.dll
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight", "GalaSoft.MvvmLight\GalaSoft.MvvmLight.csproj", "{ADB28C09-8DE9-4006-80D5-74856EB4A48B}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight (SL)", "GalaSoft.MvvmLight (SL)\GalaSoft.MvvmLight (SL).csproj", "{74712BA6-83BE-470C-9ED0-879DD1B08D9E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Test (SL)", "GalaSoft.MvvmLight.Test (SL)\GalaSoft.MvvmLight.Test (SL).csproj", "{3A385A3C-0569-4F3B-8D3C-EDAEFB6AA6D3}"
@ -19,47 +34,13 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Extras",
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Extras (SL)", "GalaSoft.MvvmLight.Extras (SL)\GalaSoft.MvvmLight.Extras (SL).csproj", "{8ABB3CDF-47C4-468E-9C8A-56491C5F1C7D}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{02A4F36A-A453-4AA0-B0FD-ED3FFA5FDFB7}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight (WP7)", "GalaSoft.MvvmLight (WP7)\GalaSoft.MvvmLight (WP7).csproj", "{CD51F6FA-CD5B-4405-B5F1-B65CCAE8845B}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{38B6B51B-0A49-460E-ACFE-6944D91221C2}"
ProjectSection(SolutionItems) = preProject
External\Silverlight\Microsoft.Silverlight.Testing.dll = External\Silverlight\Microsoft.Silverlight.Testing.dll
External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll = External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
External\Silverlight\System.Windows.Interactivity.dll = External\Silverlight\System.Windows.Interactivity.dll
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{DA63512E-8316-48D0-BAB8-A41F26ADED6B}"
ProjectSection(SolutionItems) = preProject
External\WPF\System.Windows.Interactivity.dll = External\WPF\System.Windows.Interactivity.dll
EndProjectSection
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Extras (WP7)", "GalaSoft.MvvmLight.Extras (WP7)\GalaSoft.MvvmLight.Extras (WP7).csproj", "{54CA67DF-6987-4855-A45E-5CB7C1677E9A}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 7
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs08.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = GalaSoft.MvvmLight\\GalaSoft.MvvmLight.csproj
SccProjectName1 = GalaSoft.MvvmLight
SccLocalPath1 = GalaSoft.MvvmLight
SccProjectUniqueName2 = GalaSoft.MvvmLight\u0020(SL)\\GalaSoft.MvvmLight\u0020(SL).csproj
SccProjectName2 = GalaSoft.MvvmLight\u0020(SL)
SccLocalPath2 = GalaSoft.MvvmLight\u0020(SL)
SccProjectUniqueName3 = GalaSoft.MvvmLight.Test\u0020(SL)\\GalaSoft.MvvmLight.Test\u0020(SL).csproj
SccProjectName3 = GalaSoft.MvvmLight.Test\u0020(SL)
SccLocalPath3 = GalaSoft.MvvmLight.Test\u0020(SL)
SccProjectUniqueName4 = GalaSoft.MvvmLight.Test\\GalaSoft.MvvmLight.Test.csproj
SccProjectName4 = GalaSoft.MvvmLight.Test
SccLocalPath4 = GalaSoft.MvvmLight.Test
SccProjectUniqueName5 = GalaSoft.MvvmLight.Extras\\GalaSoft.MvvmLight.Extras.csproj
SccProjectName5 = GalaSoft.MvvmLight.Extras
SccLocalPath5 = GalaSoft.MvvmLight.Extras
SccProjectUniqueName6 = GalaSoft.MvvmLight.Extras\u0020(SL)\\GalaSoft.MvvmLight.Extras\u0020(SL).csproj
SccProjectName6 = GalaSoft.MvvmLight.Extras\u0020(SL)
SccLocalPath6 = GalaSoft.MvvmLight.Extras\u0020(SL)
EndGlobalSection
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = GalaSoft.MvvmLight.vsmdi
CategoryFile = GalaSoft.MvvmLight1.vsmdi
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -87,13 +68,23 @@ Global
{78EECC01-BAE7-4914-BE2D-6BAB1059F29B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{78EECC01-BAE7-4914-BE2D-6BAB1059F29B}.Release|Any CPU.Build.0 = Release|Any CPU
{8ABB3CDF-47C4-468E-9C8A-56491C5F1C7D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8ABB3CDF-47C4-468E-9C8A-56491C5F1C7D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8ABB3CDF-47C4-468E-9C8A-56491C5F1C7D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8ABB3CDF-47C4-468E-9C8A-56491C5F1C7D}.Release|Any CPU.Build.0 = Release|Any CPU
{CD51F6FA-CD5B-4405-B5F1-B65CCAE8845B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD51F6FA-CD5B-4405-B5F1-B65CCAE8845B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD51F6FA-CD5B-4405-B5F1-B65CCAE8845B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD51F6FA-CD5B-4405-B5F1-B65CCAE8845B}.Release|Any CPU.Build.0 = Release|Any CPU
{54CA67DF-6987-4855-A45E-5CB7C1677E9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54CA67DF-6987-4855-A45E-5CB7C1677E9A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54CA67DF-6987-4855-A45E-5CB7C1677E9A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54CA67DF-6987-4855-A45E-5CB7C1677E9A}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{38B6B51B-0A49-460E-ACFE-6944D91221C2} = {02A4F36A-A453-4AA0-B0FD-ED3FFA5FDFB7}
{DA63512E-8316-48D0-BAB8-A41F26ADED6B} = {02A4F36A-A453-4AA0-B0FD-ED3FFA5FDFB7}
{97B7C3DB-C0FB-4D7D-BA33-14E3F4E86BF6} = {CE22CBE5-A263-463E-8BCD-A77A60995C0C}
{30B76B96-22B6-46F7-9D74-5EB2A954452A} = {CE22CBE5-A263-463E-8BCD-A77A60995C0C}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
<?xml version="1.0" encoding="utf-8"?>
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
<RunConfiguration id="c92fdb60-a40e-4eb1-811b-ca5976109c47" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" />
</TestList>

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}

Просмотреть файл

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
<RunConfiguration id="c92fdb60-a40e-4eb1-811b-ca5976109c47" name="Local Test Run" storage="localtestrun.testrunconfig" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" />
</TestList>
</TestLists>

Просмотреть файл

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestRunConfiguration name="Local Test Run" id="c92fdb60-a40e-4eb1-811b-ca5976109c47" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2006">
<?xml version="1.0" encoding="utf-8"?>
<TestRunConfiguration name="Local Test Run" id="c92fdb60-a40e-4eb1-811b-ca5976109c47" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>This is a default test run configuration for a local test run.</Description>
<TestTypeSpecific />
<CodeCoverage enabled="true">
<Regular>
<CodeCoverageItem binaryFile="GalaSoft.MvvmLight\bin\Debug\GalaSoft.MvvmLight.dll" pdbFile="GalaSoft.MvvmLight\bin\Debug\GalaSoft.MvvmLight.pdb" instrumentInPlace="true" />
<CodeCoverageItem binaryFile="GalaSoft.MvvmLight.Extras\bin\Debug\GalaSoft.MvvmLight.Extras.dll" pdbFile="GalaSoft.MvvmLight.Extras\bin\Debug\GalaSoft.MvvmLight.Extras.pdb" instrumentInPlace="true" />
</Regular>
</CodeCoverage>
</TestRunConfiguration>

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -1,4 +1,8 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -10,7 +14,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CleanShutdown</RootNamespace>
<AssemblyName>CleanShutdown.SL</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>
</SupportedCultures>
@ -28,10 +32,31 @@
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +68,7 @@
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -53,6 +79,7 @@
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=2.0.0.0, Culture=neutral, PublicKeyToken=ef0f8c0372b87f18, processorArchitecture=MSIL">
@ -118,14 +145,20 @@
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Page.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\MainSkin.xaml">
<Generator>MSBuild:MarkupCompilePass1</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
@ -140,7 +173,24 @@
<ItemGroup>
<Resource Include="License.txt" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" Condition="" />
<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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- 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">

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -19,7 +19,7 @@ namespace CleanShutdown.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

Просмотреть файл

@ -1,36 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanShutdown", "CleanShutdown\CleanShutdown.csproj", "{50332306-5DD8-45A0-A64D-3BDC4BCB57B7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CleanShutdown.SL", "CleanShutdown.SL\CleanShutdown.SL.csproj", "{13C5E2B0-1707-4EF1-B30A-5B964F8012F4}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{70A1CABC-8D25-49DE-AD4B-299174070BF0}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{9C1A8D9F-1C2C-4F1A-86FF-471048A098F1}"
ProjectSection(SolutionItems) = preProject
External\WPF\GalaSoft.MvvmLight.dll = External\WPF\GalaSoft.MvvmLight.dll
External\WPF\WPFToolkit.dll = External\WPF\WPFToolkit.dll
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{E9EEB7C5-BFD5-4DA2-A2B3-B3256F89702B}"
ProjectSection(SolutionItems) = preProject
External\Silverlight\GalaSoft.MvvmLight.dll = External\Silverlight\GalaSoft.MvvmLight.dll
EndProjectSection
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs08.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = CleanShutdown.SL\\CleanShutdown.SL.csproj
SccProjectName1 = CleanShutdown.SL
SccLocalPath1 = CleanShutdown.SL
SccProjectUniqueName2 = CleanShutdown\\CleanShutdown.csproj
SccProjectName2 = CleanShutdown
SccLocalPath2 = CleanShutdown
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
@ -48,8 +23,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{9C1A8D9F-1C2C-4F1A-86FF-471048A098F1} = {70A1CABC-8D25-49DE-AD4B-299174070BF0}
{E9EEB7C5-BFD5-4DA2-A2B3-B3256F89702B} = {70A1CABC-8D25-49DE-AD4B-299174070BF0}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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>
@ -19,10 +19,33 @@
</AssemblyOriginatorKeyFile>
<ExpressionBlendVersion>3.0.1927.0</ExpressionBlendVersion>
<ApplicationIcon>GalaSoft.ico</ApplicationIcon>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -33,6 +56,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -41,6 +65,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=2.0.0.0, Culture=neutral, PublicKeyToken=3e875cdb3903c512, processorArchitecture=MSIL">
@ -80,14 +105,20 @@
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\MainSkin.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
@ -139,6 +170,23 @@
<ItemGroup>
<Resource Include="GalaSoft.ico" />
</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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -19,7 +19,7 @@ namespace CleanShutdown.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

Просмотреть файл

@ -1,28 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4918
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace CleanShutdown.Properties
{
namespace CleanShutdown.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
public static Settings Default {
get {
return defaultInstance;
}
}

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -1,4 +1,8 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -10,7 +14,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EventToCommand</RootNamespace>
<AssemblyName>EventToCommand</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>
</SupportedCultures>
@ -28,10 +32,35 @@
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<LinkedServerProject>
</LinkedServerProject>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -43,6 +72,7 @@
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -53,6 +83,7 @@
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ef0f8c0372b87f18, processorArchitecture=MSIL">
@ -97,17 +128,38 @@
<ApplicationDefinition Include="App.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:MarkupCompilePass1</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainPage.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:MarkupCompilePass1</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<None Include="Properties\AppManifest.xml" />
<None Include="Settings.StyleCop" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" />
<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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- 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">

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -327,8 +327,9 @@
</i:EventTrigger>
</i:Interaction.Triggers>
</Ellipse>
<TextBlock HorizontalAlignment="Center"
Text="EventToCommand with EventArgs (Move the mouse)"
Text="With EventArgs (Move the mouse)"
TextWrapping="Wrap"
Grid.Row="7"
Grid.ColumnSpan="2"

Просмотреть файл

@ -1,10 +1,6 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventToCommand", "EventToCommand\EventToCommand.csproj", "{577563AE-A660-4C6A-ACAF-E827CB258F2E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventToCommand.SL", "EventToCommand.SL\EventToCommand.SL.csproj", "{E6B2437D-6D6F-4C87-A4B0-10AA46C849FA}"
EndProject
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "References", "References", "{A5EEEDBD-41EA-4871-9358-6138D0A4AF50}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{0A190E1D-FCF3-4DD9-BCB8-23857CE15005}"
@ -22,19 +18,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{2E465137-9FE
References\WPF\WPFToolkit.dll = References\WPF\WPFToolkit.dll
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventToCommand", "EventToCommand\EventToCommand.csproj", "{577563AE-A660-4C6A-ACAF-E827CB258F2E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EventToCommand.SL", "EventToCommand.SL\EventToCommand.SL.csproj", "{E6B2437D-6D6F-4C87-A4B0-10AA46C849FA}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs08.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = EventToCommand.SL\\EventToCommand.SL.csproj
SccProjectName1 = EventToCommand.SL
SccLocalPath1 = EventToCommand.SL
SccProjectUniqueName2 = EventToCommand\\EventToCommand.csproj
SccProjectName2 = EventToCommand
SccLocalPath2 = EventToCommand
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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>
@ -18,10 +18,33 @@
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<ExpressionBlendVersion>3.0.1927.0</ExpressionBlendVersion>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath>
</SccAuxPath>
<SccProvider>
</SccProvider>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -32,6 +55,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -40,6 +64,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=3e875cdb3903c512, processorArchitecture=MSIL">
@ -87,10 +112,14 @@
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
@ -129,6 +158,23 @@
<None Include="Settings.StyleCop" />
<AppDesigner Include="Properties\" />
</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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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.

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -0,0 +1,383 @@
<UserControl
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity" xmlns:GalaSoft_MvvmLight_Command="clr-namespace:GalaSoft.MvvmLight.Command;assembly=GalaSoft.MvvmLight.Extras"
x:Class="EventToCommand.MainUserControl"
x:Name="UserControl"
d:DesignWidth="600" d:DesignHeight="402">
<UserControl.Resources>
<ControlTemplate x:Key="ButtonTemplate"
TargetType="{x:Type Button}">
<Grid x:Name="Root"
Opacity="0.8"
RenderTransformOrigin="0.5,0.5">
<Grid.RenderTransform>
<TransformGroup>
<ScaleTransform />
<SkewTransform />
<RotateTransform />
<TranslateTransform />
</TransformGroup>
</Grid.RenderTransform>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="CommonStates">
<VisualStateGroup.Transitions>
<VisualTransition From="MouseOver"
GeneratedDuration="00:00:00.2000000"
To="Normal" />
<VisualTransition From="Normal"
GeneratedDuration="00:00:00.2000000"
To="MouseOver" />
</VisualStateGroup.Transitions>
<VisualState x:Name="Normal" />
<VisualState x:Name="MouseOver">
<Storyboard>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Duration="00:00:00.0010000"
Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00"
Value="1" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Pressed">
<Storyboard>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Duration="00:00:00.0010000"
Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00"
Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Duration="00:00:00.0010000"
Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
<SplineDoubleKeyFrame KeyTime="00:00:00"
Value="0.9" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Duration="00:00:00.0010000"
Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<SplineDoubleKeyFrame KeyTime="00:00:00"
Value="0.9" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Disabled">
<Storyboard>
<DoubleAnimationUsingKeyFrames BeginTime="00:00:00"
Duration="00:00:00.0010000"
Storyboard.TargetName="Root"
Storyboard.TargetProperty="(UIElement.Opacity)">
<SplineDoubleKeyFrame KeyTime="00:00:00"
Value="0.4" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
<Rectangle Fill="{TemplateBinding Background}"
Stroke="Black"
RadiusX="8"
RadiusY="8" />
<TextBlock HorizontalAlignment="Center"
VerticalAlignment="Center"
Text="{TemplateBinding Content}"
TextWrapping="Wrap"
FontSize="18"
FontWeight="Bold" />
</Grid>
</ControlTemplate>
<Style x:Key="ButtonStyle"
TargetType="{x:Type Button}">
<Setter Property="Template"
Value="{DynamicResource ButtonTemplate}" />
<Setter Property="Cursor"
Value="Hand" />
</Style>
<Style x:Key="RectangleStyle"
TargetType="{x:Type Rectangle}">
<Style.Triggers>
<Trigger Property="IsEnabled"
Value="False">
<Setter Property="Opacity"
Value="0.5" />
</Trigger>
</Style.Triggers>
</Style>
<GridLength x:Key="NormalRowHeight">60</GridLength>
<GridLength x:Key="ParameterRowHeight">30</GridLength>
</UserControl.Resources>
<Grid x:Name="LayoutRoot">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="{DynamicResource NormalRowHeight}" />
<RowDefinition Height="{DynamicResource NormalRowHeight}" />
<RowDefinition Height="{DynamicResource NormalRowHeight}" />
<RowDefinition Height="{DynamicResource ParameterRowHeight}" />
<RowDefinition Height="{DynamicResource NormalRowHeight}" />
<RowDefinition Height="{DynamicResource NormalRowHeight}" />
<RowDefinition Height="{DynamicResource ParameterRowHeight}" />
<RowDefinition Height="0.884*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="300" />
<ColumnDefinition Width="150" />
<ColumnDefinition Width="150" />
</Grid.ColumnDefinitions>
<TextBlock HorizontalAlignment="Center"
Margin="10,0"
VerticalAlignment="Center"
FontSize="18"
FontStyle="Italic"
FontWeight="Bold"
Foreground="{Binding LastUsedBrush, Mode=Default}"
Text="{Binding Status, Mode=Default}"
TextWrapping="Wrap"
Grid.ColumnSpan="2" />
<TextBox x:Name="ParameterTextBox"
Margin="40,0"
FontSize="16"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
Grid.ColumnSpan="3"
Grid.Row="3"
Text="Parameter for the command" />
<Button Background="{Binding Brushes.Brush1, Mode=Default}"
Margin="10"
Style="{DynamicResource ButtonStyle}"
Content="Simple Command"
Grid.Row="1"
ToolTip="Click to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SimpleCommand, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Rectangle Fill="{Binding Brushes.Brush1, Mode=Default}"
Stroke="Black"
Margin="10"
Grid.Column="1"
Grid.Row="1"
Style="{DynamicResource RectangleStyle}"
ToolTip="MouseOver to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SimpleCommand, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
<Button Background="{Binding Brushes.Brush2}"
Margin="10"
Style="{DynamicResource ButtonStyle}"
Content="Parameter Command (bound)"
Grid.Row="2"
ToolTip="Click to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand1, Mode=Default}"
CommandParameter="{Binding Text, ElementName=ParameterTextBox}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Rectangle Fill="{Binding Brushes.Brush2, Mode=Default}"
Stroke="Black"
Margin="10"
Grid.Column="1"
Grid.Row="2"
Style="{DynamicResource RectangleStyle}"
ToolTip="MouseOver to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand1, Mode=Default}"
CommandParameter="{Binding Text, ElementName=ParameterTextBox, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
<Button Background="{Binding Brushes.Brush3, Mode=Default}"
Margin="10"
Style="{DynamicResource ButtonStyle}"
Content="Parameter Command (Hello)"
Grid.Row="4"
ToolTip="Click to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand2, Mode=Default}"
CommandParameter="Hello" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Rectangle Fill="{Binding Brushes.Brush3, Mode=Default}"
Stroke="Black"
Margin="10"
Grid.Column="1"
Grid.Row="4"
Style="{DynamicResource RectangleStyle}"
ToolTip="MouseOver to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand2, Mode=Default}"
CommandParameter="Hello" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
<Button Background="{Binding Brushes.Brush4, Mode=Default}"
Margin="10"
Style="{DynamicResource ButtonStyle}"
Content="&quot;Disablable&quot; Command"
Grid.Row="5"
ToolTip="Click to activate command">
<i:Interaction.Triggers>
<i:EventTrigger EventName="Click">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding DisablableCommand, Mode=Default}"
CommandParameter="{Binding Text, ElementName=DisableCommandTextBox, Mode=Default}"
MustToggleIsEnabled="{Binding IsChecked, ElementName=checkBox, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Button>
<Rectangle Fill="{Binding Brushes.Brush4, Mode=Default}"
Stroke="Black"
Margin="10"
Grid.Column="1"
Grid.Row="5"
ToolTip="Rectangles can also be disabled in WPF"
Style="{DynamicResource RectangleStyle}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="MouseEnter">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding DisablableCommand, Mode=Default}"
CommandParameter="{Binding Text, ElementName=DisableCommandTextBox, Mode=Default}"
MustToggleIsEnabled="{Binding IsChecked, ElementName=checkBox, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</Rectangle>
<TextBox x:Name="DisableCommandTextBox"
Margin="40,0,0,0"
FontSize="16"
HorizontalContentAlignment="Center"
VerticalContentAlignment="Center"
Grid.Row="6"
Text="Enter the word &quot;Hello&quot; to disable" />
<CheckBox x:Name="checkBox"
Content="Allow toggling IsEnabled"
Grid.Column="1"
Grid.Row="6"
FontSize="16"
VerticalAlignment="Center"
Margin="10,0,0,0"
IsChecked="True"
Grid.ColumnSpan="2" />
<ComboBox Margin="10"
Grid.Column="2"
Grid.Row="1"
ToolTip="Open to execute command"
BorderBrush="{Binding Brushes.Brush1, Mode=Default}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="DropDownOpened">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding SimpleCommand, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
<ComboBox Margin="10"
Grid.Column="2"
Grid.Row="2"
ToolTip="Open to execute command"
BorderBrush="{Binding Brushes.Brush2, Mode=Default}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="DropDownOpened">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand1, Mode=Default}"
CommandParameter="{Binding Text, ElementName=ParameterTextBox, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
<ComboBox Margin="10"
Grid.Column="2"
Grid.Row="4"
ToolTip="Open to execute command"
BorderBrush="{Binding Brushes.Brush3, Mode=Default}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="DropDownOpened">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ParameterCommand2, Mode=Default}"
CommandParameter="Hello" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
<ComboBox Margin="10"
Grid.Column="2"
Grid.Row="5"
ToolTip="Open to execute command"
BorderBrush="{Binding Brushes.Brush4, Mode=Default}">
<i:Interaction.Triggers>
<i:EventTrigger EventName="DropDownOpened">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding DisablableCommand, Mode=Default}"
CommandParameter="{Binding Text, ElementName=DisableCommandTextBox, Mode=Default}"
MustToggleIsEnabled="{Binding IsChecked, ElementName=checkBox, Mode=Default}" />
</i:EventTrigger>
<i:EventTrigger EventName="MouseLeave">
<GalaSoft_MvvmLight_Command:EventToCommand Command="{Binding ResetCommand, Mode=Default}" />
</i:EventTrigger>
</i:Interaction.Triggers>
</ComboBox>
</Grid>
</Grid>
</UserControl>

Просмотреть файл

@ -345,8 +345,9 @@
</i:EventTrigger>
</i:Interaction.Triggers>
</Ellipse>
<TextBlock HorizontalAlignment="Center"
Text="EventToCommand with EventArgs (Move the mouse)"
Text="With EventArgs (Move the mouse)"
TextWrapping="Wrap"
Grid.Row="7"
d:LayoutOverrides="Height"

Просмотреть файл

@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4927
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@ -19,7 +19,7 @@ namespace EventToCommand.Properties {
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

Просмотреть файл

@ -1,28 +1,24 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4918
// Runtime Version:4.0.30128.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace EventToCommand.Properties
{
namespace EventToCommand.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
public static Settings Default {
get {
return defaultInstance;
}
}

Просмотреть файл

@ -1,4 +1,2 @@
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
</ResourceDictionary>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"/>

Двоичные данные
Samples/EventToCommand/EventToCommandDemo/EventToCommand.xap Normal file

Двоичный файл не отображается.

Просмотреть файл

@ -0,0 +1,73 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<!-- saved from url=(0014)about:internet -->
<head>
<title>EventToCommand.SL</title>
<style type="text/css">
html, body {
height: 100%;
overflow: auto;
}
body {
padding: 0;
margin: 0;
}
#silverlightControlHost {
height: 100%;
text-align:center;
}
</style>
<script type="text/javascript">
function onSilverlightError(sender, args) {
var appSource = "";
if (sender != null && sender != 0) {
appSource = sender.getHost().Source;
}
var errorType = args.ErrorType;
var iErrorCode = args.ErrorCode;
if (errorType == "ImageError" || errorType == "MediaError") {
return;
}
var errMsg = "Unhandled Error in Silverlight Application " + appSource + "\n" ;
errMsg += "Code: "+ iErrorCode + " \n";
errMsg += "Category: " + errorType + " \n";
errMsg += "Message: " + args.ErrorMessage + " \n";
if (errorType == "ParserError") {
errMsg += "File: " + args.xamlFile + " \n";
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition + " \n";
}
else if (errorType == "RuntimeError") {
if (args.lineNumber != 0) {
errMsg += "Line: " + args.lineNumber + " \n";
errMsg += "Position: " + args.charPosition + " \n";
}
errMsg += "MethodName: " + args.methodName + " \n";
}
throw new Error(errMsg);
}
</script>
</head>
<body>
<form id="form1" runat="server" style="height:100%">
<div id="silverlightControlHost">
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
<param name="source" value="EventToCommand.xap"/>
<param name="onError" value="onSilverlightError" />
<param name="background" value="white" />
<param name="minRuntimeVersion" value="3.0.40818.0" />
<param name="autoUpgrade" value="true" />
<a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40818.0" style="text-decoration:none">
<img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
</a>
</object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>
</form>
</body>
</html>

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Просмотреть файл

@ -1,4 +1,8 @@
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@ -10,7 +14,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.Samples.RaiseCanExecuteChanged</RootNamespace>
<AssemblyName>GalaSoft.Samples.RaiseCanExecuteChanged</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.0</TargetFrameworkVersion>
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>
</SupportedCultures>
@ -33,10 +37,23 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>GalaSoft.Samples.RaiseCanExecuteChanged.SL.snk</AssemblyOriginatorKeyFile>
<OutOfBrowserSettingsFile>Properties\OutOfBrowserSettings.xml</OutOfBrowserSettingsFile>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<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>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -49,6 +66,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -59,6 +77,7 @@
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=0.0.0.0, Culture=neutral, PublicKeyToken=ef0f8c0372b87f18, processorArchitecture=MSIL">
@ -92,14 +111,20 @@
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="Page.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\MainSkin.xaml">
<Generator>MSBuild:MarkupCompilePass1</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
@ -110,7 +135,24 @@
<ItemGroup>
<Resource Include="License.txt" />
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\v3.0\Microsoft.Silverlight.CSharp.targets" Condition="" />
<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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- 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">

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -1,36 +1,11 @@

Microsoft Visual Studio Solution File, Format Version 10.00
# Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.Samples.RaiseCanExecuteChanged", "RaiseCanExecuteChanged\GalaSoft.Samples.RaiseCanExecuteChanged.csproj", "{CFFDC074-69FF-4CEE-B0B6-D2E169167043}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.Samples.RaiseCanExecuteChanged.SL", "RaiseCanExecuteChanged.SL\GalaSoft.Samples.RaiseCanExecuteChanged.SL.csproj", "{2199B511-9700-49D2-B776-36E6EC8763BB}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "External", "External", "{CFF064EE-B60B-410F-A1E9-5B0CBD2161D1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{1DCA2457-7174-4E91-B869-8986ED59FB32}"
ProjectSection(SolutionItems) = preProject
External\Silverlight\GalaSoft.MvvmLight.dll = External\Silverlight\GalaSoft.MvvmLight.dll
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{DFA33677-938F-4E34-A3A8-3CF9565E7A48}"
ProjectSection(SolutionItems) = preProject
External\WPF\GalaSoft.MvvmLight.dll = External\WPF\GalaSoft.MvvmLight.dll
External\WPF\WPFToolkit.dll = External\WPF\WPFToolkit.dll
EndProjectSection
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs08.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = RaiseCanExecuteChanged.SL\\GalaSoft.Samples.RaiseCanExecuteChanged.SL.csproj
SccProjectName1 = RaiseCanExecuteChanged.SL
SccLocalPath1 = RaiseCanExecuteChanged.SL
SccProjectUniqueName2 = RaiseCanExecuteChanged\\GalaSoft.Samples.RaiseCanExecuteChanged.csproj
SccProjectName2 = RaiseCanExecuteChanged
SccLocalPath2 = RaiseCanExecuteChanged
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
@ -48,8 +23,4 @@ Global
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{1DCA2457-7174-4E91-B869-8986ED59FB32} = {CFF064EE-B60B-410F-A1E9-5B0CBD2161D1}
{DFA33677-938F-4E34-A3A8-3CF9565E7A48} = {CFF064EE-B60B-410F-A1E9-5B0CBD2161D1}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROJECT"
}

Просмотреть файл

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<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>
@ -17,6 +17,12 @@
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>GalaSoft.Samples.RaiseCanExecuteChanged.snk</AssemblyOriginatorKeyFile>
<ExpressionBlendVersion>3.0.1927.0</ExpressionBlendVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<ApplicationIcon>GalaSoft.ico</ApplicationIcon>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
@ -29,14 +35,8 @@
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<ApplicationIcon>GalaSoft.ico</ApplicationIcon>
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -47,6 +47,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<RunCodeAnalysis>true</RunCodeAnalysis>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@ -55,6 +56,7 @@
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight, Version=0.0.0.0, Culture=neutral, processorArchitecture=MSIL">
@ -94,14 +96,20 @@
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
<Page Include="MainWindow.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Skins\MainSkin.xaml">
<Generator>MSBuild:MarkupCompilePass1</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
@ -125,7 +133,7 @@
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">

Просмотреть файл

@ -1,10 +0,0 @@
""
{
"FILE_VERSION" = "9237"
"ENLISTMENT_CHOICE" = "NEVER"
"PROJECT_FILE_RELATIVE_PATH" = ""
"NUMBER_OF_EXCLUDED_FILES" = "0"
"ORIGINAL_PROJECT_FILE_PATH" = ""
"NUMBER_OF_NESTED_PROJECTS" = "0"
"SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER"
}

Просмотреть файл

@ -7,8 +7,9 @@ del /s /f *.vspscc
del /s /f *.keep
del /s /ah /f vssver2.scc
del /s /ah StyleCop.Cache
del /s /ah .hgignore
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults
rd /s /q bin obj ClientBin _Resharper.* _Upgrade* TestResults .svn .hg
del dirs.txt
dir /s /b /ad bin > dirs.txt
@ -17,6 +18,8 @@ dir /s /b /ad ClientBin >> dirs.txt
dir /s /b /ad _Resharper.* >> dirs.txt
dir /s /b /ad _Upgrade* >> dirs.txt
dir /s /b /ad TestResults >> dirs.txt
dir /s /b /ad .svn >> dirs.txt
dir /s /b /ad .hg >> dirs.txt
for /f "delims=;" %%i in (dirs.txt) DO rd /s /q "%%i"
del dirs.txt

Двоичные данные
VS10/GalaSoft.MvvmLight/External/Silverlight/Microsoft.Silverlight.Testing.dll поставляемый

Двоичный файл не отображается.

Двоичный файл не отображается.

Двоичные данные
VS10/GalaSoft.MvvmLight/External/Silverlight/System.Windows.Interactivity.dll поставляемый

Двоичный файл не отображается.

Двоичные данные
VS10/GalaSoft.MvvmLight/External/WPF/System.Windows.Interactivity.dll поставляемый

Двоичный файл не отображается.

Просмотреть файл

@ -1,158 +0,0 @@
<?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>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.SL4</AssemblyName>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</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>
<DocumentationFile>Bin\Debug\GalaSoft.MvvmLight.SL4.XML</DocumentationFile>
</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>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>GalaSoft.MvvmLight.SL4.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight %28SL%29\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Command\RelayCommand.cs">
<Link>Command\RelayCommand.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Command\RelayCommandGeneric.cs">
<Link>Command\RelayCommandGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\IExecuteWithObject.cs">
<Link>Helpers\IExecuteWithObject.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\WeakAction.cs">
<Link>Helpers\WeakAction.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\WeakActionGeneric.cs">
<Link>Helpers\WeakActionGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\ICleanup.cs">
<Link>ICleanup.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\DialogMessage.cs">
<Link>Messaging\DialogMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\GenericMessage.cs">
<Link>Messaging\GenericMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\IMessenger.cs">
<Link>Messaging\IMessenger.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\MessageBase.cs">
<Link>Messaging\MessageBase.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\Messenger.cs">
<Link>Messaging\Messenger.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessage.cs">
<Link>Messaging\NotificationMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageAction.cs">
<Link>Messaging\NotificationMessageAction.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageActionGeneric.cs">
<Link>Messaging\NotificationMessageActionGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageGeneric.cs">
<Link>Messaging\NotificationMessageGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageWithCallback.cs">
<Link>Messaging\NotificationMessageWithCallback.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\PropertyChangedMessage.cs">
<Link>Messaging\PropertyChangedMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\PropertyChangedMessageBase.cs">
<Link>Messaging\PropertyChangedMessageBase.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\ViewModelBase.cs">
<Link>ViewModelBase.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup />
<ItemGroup>
<Content Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\License.txt">
<Link>License.txt</Link>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="GalaSoft.MvvmLight.SL4.snk" />
<None Include="Settings.StyleCop" />
</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>

Двоичный файл не отображается.

Просмотреть файл

@ -1,47 +0,0 @@
<StyleCopSettings Version="4.3">
<Parsers>
<Parser ParserId="Microsoft.StyleCop.CSharp.CsParser">
<ParserSettings>
<BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
</ParserSettings>
</Parser>
</Parsers>
<Analyzers>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
<AnalyzerSettings>
<BooleanProperty Name="IgnorePrivates">True</BooleanProperty>
<BooleanProperty Name="IgnoreInternals">True</BooleanProperty>
</AnalyzerSettings>
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
<Rules>
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
<Rules>
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
<Rules>
<Rule Name="PrefixLocalCallsWithThis">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
</Analyzers>
</StyleCopSettings>

Просмотреть файл

@ -1,107 +0,0 @@
<?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>
<ProductVersion>8.0.50727</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight.Extras</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.Extras.SL4</AssemblyName>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</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>
<DocumentationFile>Bin\Debug\GalaSoft.MvvmLight.Extras.SL4.XML</DocumentationFile>
</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>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>GalaSoft.MvvmLight.Extras.SL4.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Interactivity, Version=4.0.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
<Reference Include="System.Windows.Browser" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Extras %28SL%29\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Extras\Threading\DispatcherHelper.cs">
<Link>Threading\DispatcherHelper.cs</Link>
</Compile>
<Compile Include="..\GalaSoft.MvvmLight.Extras\Command\EventToCommandVS10.cs">
<Link>Command\EventToCommandVS10.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="GalaSoft.MvvmLight.Extras.SL4.snk" />
<None Include="Settings.StyleCop" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\License.txt">
<Link>License.txt</Link>
</Content>
</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>

Двоичный файл не отображается.

Просмотреть файл

@ -1,47 +0,0 @@
<StyleCopSettings Version="4.3">
<Parsers>
<Parser ParserId="Microsoft.StyleCop.CSharp.CsParser">
<ParserSettings>
<BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
</ParserSettings>
</Parser>
</Parsers>
<Analyzers>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
<AnalyzerSettings>
<BooleanProperty Name="IgnorePrivates">True</BooleanProperty>
<BooleanProperty Name="IgnoreInternals">True</BooleanProperty>
</AnalyzerSettings>
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
<Rules>
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
<Rules>
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
<Rules>
<Rule Name="PrefixLocalCallsWithThis">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
</Analyzers>
</StyleCopSettings>

Просмотреть файл

@ -1,348 +0,0 @@
// ****************************************************************************
// <copyright file="EventToCommand.cs" company="GalaSoft Laurent Bugnion">
// Copyright © GalaSoft Laurent Bugnion 2009-2010
// </copyright>
// ****************************************************************************
// <author>Laurent Bugnion</author>
// <email>laurent@galasoft.ch</email>
// <date>3.11.2009</date>
// <project>GalaSoft.MvvmLight.Extras</project>
// <web>http://www.galasoft.ch</web>
// <license>
// See license.txt in this solution or http://www.galasoft.ch/license_MIT.txt
// </license>
// <LastBaseLevel>BL0002</LastBaseLevel>
// ****************************************************************************
using System;
using System.Windows;
using System.Windows.Input;
using System.Windows.Interactivity;
#if SILVERLIGHT
using System.Windows.Controls;
#endif
////using GalaSoft.Utilities.Attributes;
namespace GalaSoft.MvvmLight.Command
{
/// <summary>
/// This <see cref="System.Windows.Interactivity.TriggerAction" /> can be
/// used to bind any event on any FrameworkElement to an <see cref="ICommand" />.
/// Typically, this element is used in XAML to connect the attached element
/// to a command located in a ViewModel. This trigger can only be attached
/// to a FrameworkElement or a class deriving from FrameworkElement.
/// <para>To access the EventArgs of the fired event, use a RelayCommand&lt;EventArgs&gt;
/// and leave the CommandParameter and CommandParameterValue empty!</para>
/// </summary>
////[ClassInfo(typeof(EventToCommand),
//// VersionString = "3.0.0.0",
//// DateString = "201003041420",
//// Description = "A Trigger used to bind any event to an ICommand.",
//// UrlContacts = "http://www.galasoft.ch/contact_en.html",
//// Email = "laurent@galasoft.ch")]
public class EventToCommand : TriggerAction<FrameworkElement>
{
/// <summary>
/// Identifies the <see cref="CommandParameter" /> dependency property
/// </summary>
public static readonly DependencyProperty CommandParameterProperty = DependencyProperty.Register(
"CommandParameter",
typeof(object),
typeof(EventToCommand),
new PropertyMetadata(
null,
(s, e) =>
{
var sender = s as EventToCommand;
if (sender == null)
{
return;
}
if (sender.AssociatedObject == null)
{
return;
}
sender.EnableDisableElement();
}));
/// <summary>
/// Identifies the <see cref="Command" /> dependency property
/// </summary>
public static readonly DependencyProperty CommandProperty = DependencyProperty.Register(
"Command",
typeof(ICommand),
typeof(EventToCommand),
new PropertyMetadata(
null,
(s, e) => OnCommandChanged(s as EventToCommand, e)));
/// <summary>
/// Identifies the <see cref="MustToggleIsEnabled" /> dependency property
/// </summary>
public static readonly DependencyProperty MustToggleIsEnabledProperty = DependencyProperty.Register(
"MustToggleIsEnabled",
typeof(bool),
typeof(EventToCommand),
new PropertyMetadata(
false,
(s, e) =>
{
var sender = s as EventToCommand;
if (sender == null)
{
return;
}
if (sender.AssociatedObject == null)
{
return;
}
sender.EnableDisableElement();
}));
private object _commandParameterValue;
private bool? _mustToggleValue;
/// <summary>
/// Gets or sets the ICommand that this trigger is bound to. This
/// is a DependencyProperty.
/// </summary>
public ICommand Command
{
get
{
return (ICommand) GetValue(CommandProperty);
}
set
{
SetValue(CommandProperty, value);
}
}
/// <summary>
/// Gets or sets an object that will be passed to the <see cref="Command" />
/// attached to this trigger. This is a DependencyProperty.
/// </summary>
public object CommandParameter
{
get
{
return this.GetValue(CommandParameterProperty);
}
set
{
SetValue(CommandParameterProperty, value);
}
}
/// <summary>
/// Gets or sets an object that will be passed to the <see cref="Command" />
/// attached to this trigger. This property is here for compatibility
/// with the Silverlight version. This is NOT a DependencyProperty.
/// For databinding, use the <see cref="CommandParameter" /> property.
/// </summary>
public object CommandParameterValue
{
get
{
return this._commandParameterValue ?? this.CommandParameter;
}
set
{
_commandParameterValue = value;
EnableDisableElement();
}
}
/// <summary>
/// Gets or sets a value indicating whether the attached element must be
/// disabled when the <see cref="Command" /> property's CanExecuteChanged
/// event fires. If this property is true, and the command's CanExecute
/// method returns false, the element will be disabled. If this property
/// is false, the element will not be disabled when the command's
/// CanExecute method changes. This is a DependencyProperty.
/// </summary>
public bool MustToggleIsEnabled
{
get
{
return (bool) this.GetValue(MustToggleIsEnabledProperty);
}
set
{
SetValue(MustToggleIsEnabledProperty, value);
}
}
/// <summary>
/// Gets or sets a value indicating whether the attached element must be
/// disabled when the <see cref="Command" /> property's CanExecuteChanged
/// event fires. If this property is true, and the command's CanExecute
/// method returns false, the element will be disabled. This property is here for
/// compatibility with the Silverlight version. This is NOT a DependencyProperty.
/// For databinding, use the <see cref="MustToggleIsEnabled" /> property.
/// </summary>
public bool MustToggleIsEnabledValue
{
get
{
return this._mustToggleValue == null
? this.MustToggleIsEnabled
: this._mustToggleValue.Value;
}
set
{
_mustToggleValue = value;
EnableDisableElement();
}
}
/// <summary>
/// Called when this trigger is attached to a FrameworkElement.
/// </summary>
protected override void OnAttached()
{
base.OnAttached();
EnableDisableElement();
}
#if SILVERLIGHT
private Control GetAssociatedObject()
{
return AssociatedObject as Control;
}
#else
/// <summary>
/// This method is here for compatibility
/// with the Silverlight version.
/// </summary>
/// <returns>The FrameworkElement to which this trigger
/// is attached.</returns>
private FrameworkElement GetAssociatedObject()
{
return AssociatedObject;
}
#endif
/// <summary>
/// This method is here for compatibility
/// with the Silverlight version.
/// </summary>
/// <returns>The command that must be executed when
/// this trigger is invoked.</returns>
private ICommand GetCommand()
{
return Command;
}
public bool PassEventArgsToCommand
{
get;
set;
}
/// <summary>
/// Provides a simple way to invoke this trigger programatically
/// without any EventArgs.
/// </summary>
public void Invoke()
{
Invoke(null);
}
/// <summary>
/// Executes the trigger.
/// <para>To access the EventArgs of the fired event, use a RelayCommand&lt;EventArgs&gt;
/// and leave the CommandParameter and CommandParameterValue empty!</para>
/// </summary>
/// <param name="parameter">The EventArgs of the fired event.</param>
protected override void Invoke(object parameter)
{
if (AssociatedElementIsDisabled())
{
return;
}
var command = GetCommand();
var commandParameter = CommandParameterValue;
if (commandParameter == null
&& PassEventArgsToCommand)
{
commandParameter = parameter;
}
if (command != null
&& command.CanExecute(commandParameter))
{
command.Execute(commandParameter);
}
}
private static void OnCommandChanged(
EventToCommand element,
DependencyPropertyChangedEventArgs e)
{
if (element == null)
{
return;
}
if (e.OldValue != null)
{
((ICommand) e.OldValue).CanExecuteChanged -= element.OnCommandCanExecuteChanged;
}
var command = (ICommand) e.NewValue;
if (command != null)
{
command.CanExecuteChanged += element.OnCommandCanExecuteChanged;
}
element.EnableDisableElement();
}
private bool AssociatedElementIsDisabled()
{
var element = GetAssociatedObject();
return element != null
&& !element.IsEnabled;
}
private void EnableDisableElement()
{
var element = GetAssociatedObject();
if (element == null)
{
return;
}
var command = this.GetCommand();
if (this.MustToggleIsEnabledValue
&& command != null)
{
element.IsEnabled = command.CanExecute(this.CommandParameterValue);
}
}
private void OnCommandCanExecuteChanged(object sender, EventArgs e)
{
EnableDisableElement();
}
}
}

Двоичный файл не отображается.

Просмотреть файл

@ -1,89 +0,0 @@
<?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>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight.Extras</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.Extras.WPF4</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\GalaSoft.MvvmLight.Extras.WPF4.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>GalaSoft.MvvmLight.Extras.WPF4.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Interactivity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\External\WPF\System.Windows.Interactivity.dll</HintPath>
</Reference>
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Extras\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Extras\Threading\DispatcherHelper.cs">
<Link>Threading\DispatcherHelper.cs</Link>
</Compile>
<Compile Include="Command\EventToCommandVS10.cs" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\License.txt">
<Link>License.txt</Link>
</Content>
</ItemGroup>
<ItemGroup>
<None Include="GalaSoft.MvvmLight.Extras.WPF4.snk" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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>

Просмотреть файл

@ -1,8 +0,0 @@
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="GalaSoft.MvvmLight.Test.App"
>
<Application.Resources>
</Application.Resources>
</Application>

Просмотреть файл

@ -1,67 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Silverlight.Testing;
namespace GalaSoft.MvvmLight.Test
{
public partial class App : Application
{
public App()
{
this.Startup += this.Application_Startup;
this.Exit += this.Application_Exit;
this.UnhandledException += this.Application_UnhandledException;
InitializeComponent();
}
private void Application_Startup(object sender, StartupEventArgs e)
{
this.RootVisual = UnitTestSystem.CreateTestPage();
}
private void Application_Exit(object sender, EventArgs e)
{
}
private void Application_UnhandledException(object sender, ApplicationUnhandledExceptionEventArgs e)
{
// If the app is running outside of the debugger then report the exception using
// the browser's exception mechanism. On IE this will display it a yellow alert
// icon in the status bar and Firefox will display a script error.
if (!System.Diagnostics.Debugger.IsAttached)
{
// NOTE: This will allow the application to continue running after an exception has been thrown
// but not handled.
// For production applications this error handling should be replaced with something that will
// report the error to the website and stop the application.
e.Handled = true;
Deployment.Current.Dispatcher.BeginInvoke(delegate { ReportErrorToDOM(e); });
}
}
private void ReportErrorToDOM(ApplicationUnhandledExceptionEventArgs e)
{
try
{
string errorMsg = e.ExceptionObject.Message + e.ExceptionObject.StackTrace;
errorMsg = errorMsg.Replace('"', '\'').Replace("\r\n", @"\n");
System.Windows.Browser.HtmlPage.Window.Eval("throw new Error(\"Unhandled Error in Silverlight 2 Application " + errorMsg + "\");");
}
catch (Exception)
{
}
}
}
}

Просмотреть файл

@ -1,211 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition="'$(MSBuildToolsVersion)' == '3.5'">
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
</PropertyGroup>
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight.Test</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.Test</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightApplication>true</SilverlightApplication>
<SupportedCultures>
</SupportedCultures>
<XapOutputs>true</XapOutputs>
<GenerateSilverlightManifest>true</GenerateSilverlightManifest>
<XapFilename>GalaSoft.MvvmLight.Test.xap</XapFilename>
<SilverlightManifestTemplate>Properties\AppManifest.xml</SilverlightManifestTemplate>
<SilverlightAppEntry>GalaSoft.MvvmLight.Test.App</SilverlightAppEntry>
<TestPageFileName>TestPage.html</TestPageFileName>
<CreateTestPage>true</CreateTestPage>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>false</ThrowErrorsInValidation>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<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>
<TargetFrameworkProfile />
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</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>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</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>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Silverlight.Testing">
<HintPath>..\External\Silverlight\Microsoft.Silverlight.Testing.dll</HintPath>
</Reference>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight">
<HintPath>..\External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll</HintPath>
</Reference>
<Reference Include="System.Windows" />
<Reference Include="mscorlib" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Net" />
<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="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test %28SL%29\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Command\RelayCommandGenericTest.cs">
<Link>Command\RelayCommandGenericTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Command\RelayCommandTest.cs">
<Link>Command\RelayCommandTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\DialogMessageTest.cs">
<Link>Messaging\DialogMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerCreationDeletionTest.cs">
<Link>Messaging\MessengerCreationDeletionTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerMultipleInstancesTest.cs">
<Link>Messaging\MessengerMultipleInstancesTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerOverrideDefaultTest.cs">
<Link>Messaging\MessengerOverrideDefaultTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerRegisterUnregisterTest.cs">
<Link>Messaging\MessengerRegisterUnregisterTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerRegisterWhileSendingTest.cs">
<Link>Messaging\MessengerRegisterWhileSendingTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendToAllTest.cs">
<Link>Messaging\MessengerSendToAllTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendToTypeTest.cs">
<Link>Messaging\MessengerSendToTypeTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendWithTokenTest.cs">
<Link>Messaging\MessengerSendWithTokenTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\NotificationMessageActionTest.cs">
<Link>Messaging\NotificationMessageActionTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\NotificationMessageTest.cs">
<Link>Messaging\NotificationMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\PropertyChangedMessageTest.cs">
<Link>Messaging\PropertyChangedMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Threading\TestDispatcherHelper.cs">
<Link>Threading\TestDispatcherHelper.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\ViewModelBaseTest.cs">
<Link>ViewModelBaseTest.cs</Link>
</Compile>
<Compile Include="..\GalaSoft.MvvmLight.Test\Command\EventToCommandTest.cs">
<Link>Command\EventToCommandTest.cs</Link>
</Compile>
<Compile Include="App.xaml.cs">
<DependentUpon>App.xaml</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<ApplicationDefinition Include="App.xaml">
<Generator>MSBuild:MarkupCompilePass1</Generator>
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</ApplicationDefinition>
</ItemGroup>
<ItemGroup>
<None Include="Properties\AppManifest.xml" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GalaSoft.MvvmLight %28SL%29\GalaSoft.MvvmLight %28SL%29.csproj">
<Project>{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}</Project>
<Name>GalaSoft.MvvmLight %28SL%29</Name>
</ProjectReference>
<ProjectReference Include="..\GalaSoft.MvvmLight.Extras %28SL%29\GalaSoft.MvvmLight.Extras %28SL%29.csproj">
<Project>{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}</Project>
<Name>GalaSoft.MvvmLight.Extras %28SL%29</Name>
</ProjectReference>
</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>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
<Visible>False</Visible>
<ProductName>Windows Installer 3.1</ProductName>
<Install>true</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\Silverlight\$(SilverlightVersion)\Microsoft.Silverlight.CSharp.targets" />
<!-- 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>
-->
<ProjectExtensions>
<VisualStudio>
<FlavorProperties GUID="{A1591282-1198-4647-A2B1-27E5FF5F6F3B}">
<SilverlightProjectProperties />
</FlavorProperties>
</VisualStudio>
</ProjectExtensions>
</Project>

Просмотреть файл

@ -1,6 +0,0 @@
<Deployment xmlns="http://schemas.microsoft.com/client/2007/deployment"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Deployment.Parts>
</Deployment.Parts>
</Deployment>

Просмотреть файл

@ -1,602 +0,0 @@
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Interactivity;
using System.Windows.Shapes;
using GalaSoft.MvvmLight.Command;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System.Windows.Input;
using System;
namespace GalaSoft.MvvmLight.Test.Command
{
[TestClass]
public class EventToCommandTest
{
[TestMethod]
public void TestInvokeWithoutParameter()
{
var trigger = new EventToCommand();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.SimpleCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
}
[TestMethod]
public void TestInvokeWithValueParameter()
{
var rectangle = new Rectangle();
var trigger = new EventToCommand();
((IAttachedObject)trigger).Attach(rectangle);
const string ParameterSent = "Hello world";
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
trigger.CommandParameterValue = ParameterSent;
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(ParameterSent, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithValueParameterNull()
{
var rectangle = new Rectangle();
var trigger = new EventToCommandStub();
((IAttachedObject)trigger).Attach(rectangle);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
trigger.CommandParameterValue = null;
trigger.InvokeWithEventArgs(new StringEventArgs("Test"));
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(null, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithBoundParameter()
{
var rectangle = new Rectangle();
var trigger = new EventToCommand();
((IAttachedObject)trigger).Attach(rectangle);
const string ParameterSent = "Hello world";
var vm = new TestViewModel();
var bindingCommand = new Binding
{
Source = vm.ParameterCommand
};
var textBox = new TextBox
{
Text = ParameterSent
};
var bindingParameter = new Binding
{
Source = textBox,
Path = new PropertyPath("Text")
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, bindingCommand);
BindingOperations.SetBinding(trigger, EventToCommand.CommandParameterProperty, bindingParameter);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(ParameterSent, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithValueParameterInWrongProperty()
{
var rectangle = new Rectangle();
var trigger = new EventToCommand();
((IAttachedObject)trigger).Attach(rectangle);
const string ParameterSent = "Hello world";
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
trigger.CommandParameter = ParameterSent;
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(ParameterSent, vm.ParameterReceived);
}
[TestMethod]
public void TestDisableCommandOnly()
{
var trigger = new EventToCommand();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommand
};
vm.EnableToggledCommand = true;
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
vm.CommandExecuted = false;
vm.EnableToggledCommand = false;
trigger.Invoke();
Assert.IsFalse(vm.CommandExecuted);
}
[TestMethod]
public void TestEnableCommandAndControl()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
var button = new Button
{
IsEnabled = false
};
((IAttachedObject)trigger).Attach(button);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommand
};
vm.EnableToggledCommand = true;
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
Assert.IsTrue(button.IsEnabled);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
}
[TestMethod]
public void TestDisableCommandAndControl()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
var button = new Button();
((IAttachedObject)trigger).Attach(button);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommand
};
vm.EnableToggledCommand = false;
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
Assert.IsFalse(button.IsEnabled);
trigger.Invoke();
Assert.IsFalse(vm.CommandExecuted);
}
[TestMethod]
public void TestEnableCommandAndRectangle()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
#if SILVERLIGHT
var rectangle = new Rectangle();
#else
var rectangle = new Rectangle
{
IsEnabled = false
};
#endif
((IAttachedObject)trigger).Attach(rectangle);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommand
};
vm.EnableToggledCommand = true;
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
#if !SILVERLIGHT
Assert.IsTrue(rectangle.IsEnabled);
#endif
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
}
[TestMethod]
public void TestDisableCommandAndRectangle()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommand
};
vm.EnableToggledCommand = false;
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
#if !SILVERLIGHT
Assert.IsFalse(rectangle.IsEnabled);
#endif
trigger.Invoke();
Assert.IsFalse(vm.CommandExecuted);
}
[TestMethod]
public void TestEnableAndDisableControlWithValueParameter()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
var button = new Button();
((IAttachedObject)trigger).Attach(button);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommandWithParameter
};
trigger.CommandParameterValue = "Hel";
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
Assert.IsFalse(button.IsEnabled);
trigger.Invoke();
Assert.IsFalse(vm.CommandExecuted);
trigger.CommandParameterValue = "Hello world";
Assert.IsTrue(button.IsEnabled);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
}
[TestMethod]
public void TestEnableAndDisableControlWithBoundParameter()
{
var trigger = new EventToCommand
{
MustToggleIsEnabledValue = true
};
var button = new Button();
((IAttachedObject)trigger).Attach(button);
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ToggledCommandWithParameter
};
var textBox = new TextBox
{
Text = "Hel"
};
var bindingParameter = new Binding
{
Source = textBox,
Path = new PropertyPath("Text")
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
BindingOperations.SetBinding(trigger, EventToCommand.CommandParameterProperty, bindingParameter);
Assert.IsFalse(button.IsEnabled);
trigger.Invoke();
Assert.IsFalse(vm.CommandExecuted);
textBox.Text = "Hello world";
#if SILVERLIGHT
// Invoking CommandManager from unit tests fails in WPF
Assert.IsTrue(button.IsEnabled);
trigger.Invoke();
Assert.IsTrue(vm.CommandExecuted);
#endif
}
[TestMethod]
public void TestInvokeSimpleCommandWithEventArgs()
{
var trigger = new EventToCommandStub();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
trigger.PassEventArgsToCommand = true;
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.SimpleCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
var args = new StringEventArgs("StringEventArgs");
trigger.InvokeWithEventArgs(args);
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(null, vm.ParameterReceived);
}
[TestMethod]
[ExpectedException(typeof(InvalidCastException))]
public void TestInvokeParameterCommandWithEventArgs()
{
var trigger = new EventToCommandStub();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
trigger.PassEventArgsToCommand = true;
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
var args = new StringEventArgs("StringEventArgs");
trigger.InvokeWithEventArgs(args);
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(args.Parameter, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithEventArgsAndNoParameter()
{
var trigger = new EventToCommandStub();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
trigger.PassEventArgsToCommand = true;
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.CommandWithEventArgs
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
var args = new StringEventArgs("StringEventArgs");
trigger.InvokeWithEventArgs(args);
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(args.Parameter, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithEventArgsAndParameterValue()
{
var trigger = new EventToCommandStub();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
trigger.PassEventArgsToCommand = true;
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
const string CommandParameter = "CommandParameter";
trigger.CommandParameterValue = CommandParameter;
var args = new StringEventArgs("StringEventArgs");
trigger.InvokeWithEventArgs(args);
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(CommandParameter, vm.ParameterReceived);
}
[TestMethod]
public void TestInvokeWithEventArgsAndBoundParameter()
{
var trigger = new EventToCommandStub();
var rectangle = new Rectangle();
((IAttachedObject)trigger).Attach(rectangle);
trigger.PassEventArgsToCommand = true;
var vm = new TestViewModel();
var binding = new Binding
{
Source = vm.ParameterCommand
};
var textBox = new TextBox
{
Text = "BoundParameter"
};
var bindingParameter = new Binding
{
Source = textBox,
Path = new PropertyPath("Text")
};
BindingOperations.SetBinding(trigger, EventToCommand.CommandProperty, binding);
BindingOperations.SetBinding(trigger, EventToCommand.CommandParameterProperty, bindingParameter);
var args = new StringEventArgs("StringEventArgs");
trigger.InvokeWithEventArgs(args);
Assert.IsTrue(vm.CommandExecuted);
Assert.AreEqual(textBox.Text, vm.ParameterReceived);
}
private class StringEventArgs : EventArgs
{
public string Parameter
{
get;
private set;
}
public StringEventArgs(string parameter)
{
Parameter = parameter;
}
}
private class EventToCommandStub : EventToCommand
{
public void InvokeWithEventArgs(EventArgs args)
{
base.Invoke(args);
}
}
private class TestViewModel : ViewModelBase
{
public bool CommandExecuted
{
get;
set;
}
public string ParameterReceived
{
get;
private set;
}
public ICommand SimpleCommand
{
get;
private set;
}
public ICommand ParameterCommand
{
get;
private set;
}
public ICommand ToggledCommand
{
get;
private set;
}
public ICommand ToggledCommandWithParameter
{
get;
private set;
}
public readonly RelayCommand<EventArgs> CommandWithEventArgs;
private bool _enableToggledCommand;
public bool EnableToggledCommand
{
private get
{
return _enableToggledCommand;
}
set
{
_enableToggledCommand = value;
((RelayCommand)ToggledCommand).RaiseCanExecuteChanged();
}
}
public TestViewModel()
{
SimpleCommand = new RelayCommand(() => CommandExecuted = true);
ParameterCommand = new RelayCommand<string>(p =>
{
CommandExecuted = true;
ParameterReceived = p;
});
ToggledCommand = new RelayCommand(
() => CommandExecuted = true,
() => EnableToggledCommand);
ToggledCommandWithParameter = new RelayCommand<string>(
p =>
{
CommandExecuted = true;
ParameterReceived = p;
},
p => (p != null && p.StartsWith("Hello")));
CommandWithEventArgs = new RelayCommand<EventArgs>(e =>
{
CommandExecuted = true;
ParameterReceived = ((StringEventArgs)e).Parameter;
});
}
}
}
}

Просмотреть файл

@ -1,129 +0,0 @@
<?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>
<ProductVersion>
</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C78522AA-7312-4B48-9A33-44EA05EFDEA1}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight.Test</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.Test</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<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</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Windows.Interactivity, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\External\WPF\System.Windows.Interactivity.dll</HintPath>
</Reference>
<Reference Include="System.Xaml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Command\RelayCommandGenericTest.cs">
<Link>Command\RelayCommandGenericTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Command\RelayCommandTest.cs">
<Link>Command\RelayCommandTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\DialogMessageTest.cs">
<Link>Messaging\DialogMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerCreationDeletionTest.cs">
<Link>Messaging\MessengerCreationDeletionTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerMultipleInstancesTest.cs">
<Link>Messaging\MessengerMultipleInstancesTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerOverrideDefaultTest.cs">
<Link>Messaging\MessengerOverrideDefaultTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerRegisterUnregisterTest.cs">
<Link>Messaging\MessengerRegisterUnregisterTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerRegisterWhileSendingTest.cs">
<Link>Messaging\MessengerRegisterWhileSendingTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendToAllTest.cs">
<Link>Messaging\MessengerSendToAllTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendToTypeTest.cs">
<Link>Messaging\MessengerSendToTypeTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\MessengerSendWithTokenTest.cs">
<Link>Messaging\MessengerSendWithTokenTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\NotificationMessageActionTest.cs">
<Link>Messaging\NotificationMessageActionTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\NotificationMessageTest.cs">
<Link>Messaging\NotificationMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Messaging\PropertyChangedMessageTest.cs">
<Link>Messaging\PropertyChangedMessageTest.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\Threading\TestDispatcherHelper.cs">
<Link>Threading\TestDispatcherHelper.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.Test\ViewModelBaseTest.cs">
<Link>ViewModelBaseTest.cs</Link>
</Compile>
<Compile Include="Command\EventToCommandTest.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\GalaSoft.MvvmLight.Extras\GalaSoft.MvvmLight.Extras.csproj">
<Project>{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}</Project>
<Name>GalaSoft.MvvmLight.Extras</Name>
</ProjectReference>
<ProjectReference Include="..\GalaSoft.MvvmLight\GalaSoft.MvvmLight.csproj">
<Project>{E8EF2656-7165-42D1-9C46-63E66679808D}</Project>
<Name>GalaSoft.MvvmLight</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- 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>

Просмотреть файл

@ -1,78 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight", "GalaSoft.MvvmLight\GalaSoft.MvvmLight.csproj", "{E8EF2656-7165-42D1-9C46-63E66679808D}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Test", "GalaSoft.MvvmLight.Test\GalaSoft.MvvmLight.Test.csproj", "{C78522AA-7312-4B48-9A33-44EA05EFDEA1}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{A5CCD90E-3C68-4450-96F9-406543F15E99}"
ProjectSection(SolutionItems) = preProject
GalaSoft.MvvmLight.vsmdi = GalaSoft.MvvmLight.vsmdi
Local.testsettings = Local.testsettings
TraceAndTestImpact.testsettings = TraceAndTestImpact.testsettings
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Extras", "GalaSoft.MvvmLight.Extras\GalaSoft.MvvmLight.Extras.csproj", "{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight (SL)", "GalaSoft.MvvmLight (SL)\GalaSoft.MvvmLight (SL).csproj", "{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Externals", "Externals", "{B55B33AA-CFDC-4337-8A85-784BDD103BE5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "WPF", "WPF", "{EC0E1F48-60DB-4924-9AD9-528B35B381C2}"
ProjectSection(SolutionItems) = preProject
External\WPF\System.Windows.Interactivity.dll = External\WPF\System.Windows.Interactivity.dll
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Silverlight", "Silverlight", "{AA68CC2F-F6FF-45C5-8D85-A2CDBD829ADC}"
ProjectSection(SolutionItems) = preProject
External\Silverlight\Microsoft.Silverlight.Testing.dll = External\Silverlight\Microsoft.Silverlight.Testing.dll
External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll = External\Silverlight\Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll
External\Silverlight\System.Windows.Interactivity.dll = External\Silverlight\System.Windows.Interactivity.dll
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Test (SL)", "GalaSoft.MvvmLight.Test (SL)\GalaSoft.MvvmLight.Test (SL).csproj", "{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GalaSoft.MvvmLight.Extras (SL)", "GalaSoft.MvvmLight.Extras (SL)\GalaSoft.MvvmLight.Extras (SL).csproj", "{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}"
EndProject
Global
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = GalaSoft.MvvmLight.vsmdi
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{E8EF2656-7165-42D1-9C46-63E66679808D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E8EF2656-7165-42D1-9C46-63E66679808D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{E8EF2656-7165-42D1-9C46-63E66679808D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E8EF2656-7165-42D1-9C46-63E66679808D}.Release|Any CPU.Build.0 = Release|Any CPU
{C78522AA-7312-4B48-9A33-44EA05EFDEA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C78522AA-7312-4B48-9A33-44EA05EFDEA1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C78522AA-7312-4B48-9A33-44EA05EFDEA1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C78522AA-7312-4B48-9A33-44EA05EFDEA1}.Release|Any CPU.Build.0 = Release|Any CPU
{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4934C525-4BC4-400C-B5C8-E5B6CF7CBF7A}.Release|Any CPU.Build.0 = Release|Any CPU
{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{11A41BAF-44C7-4F4E-9E7C-B9427414AEA6}.Release|Any CPU.Build.0 = Release|Any CPU
{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{39385BF4-CF1C-49F7-8A74-E4D31D7727E7}.Release|Any CPU.Build.0 = Release|Any CPU
{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CC59E77A-1843-4293-B7CC-1BC84F79ABB7}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{EC0E1F48-60DB-4924-9AD9-528B35B381C2} = {B55B33AA-CFDC-4337-8A85-784BDD103BE5}
{AA68CC2F-F6FF-45C5-8D85-A2CDBD829ADC} = {B55B33AA-CFDC-4337-8A85-784BDD103BE5}
EndGlobalSection
EndGlobal

Просмотреть файл

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestLists xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<TestList name="Lists of Tests" id="8c43106b-9dc1-4907-a29f-aa66a61bf5b6">
<RunConfiguration id="e4ac22ab-b21f-4ed4-90b4-e20f2014639e" name="Local" storage="local.testsettings" type="Microsoft.VisualStudio.TestTools.Common.TestRunConfiguration, Microsoft.VisualStudio.QualityTools.Common, PublicKeyToken=b03f5f7f11d50a3a" />
</TestList>
</TestLists>

Просмотреть файл

@ -1,96 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<FxCopProject Version="1.36" Name="GalaSoft.MvvmLight">
<ProjectOptions>
<SharedProject>True</SharedProject>
<Stylesheet Apply="False">c:\program files\microsoft fxcop 1.36\Xml\FxCopReport.xsl</Stylesheet>
<SaveMessages>
<Project Status="Active, Excluded" NewOnly="False" />
<Report Status="Active" NewOnly="False" />
</SaveMessages>
<ProjectFile Compress="True" DefaultTargetCheck="True" DefaultRuleCheck="True" SaveByRuleGroup="" Deterministic="True" />
<EnableMultithreadedLoad>True</EnableMultithreadedLoad>
<EnableMultithreadedAnalysis>True</EnableMultithreadedAnalysis>
<SourceLookup>True</SourceLookup>
<AnalysisExceptionsThreshold>10</AnalysisExceptionsThreshold>
<RuleExceptionsThreshold>1</RuleExceptionsThreshold>
<Spelling Locale="en-US" />
<OverrideRuleVisibilities>False</OverrideRuleVisibilities>
<CustomDictionaries SearchFxCopDir="True" SearchUserProfile="True" SearchProjectDir="True" />
<SearchGlobalAssemblyCache>False</SearchGlobalAssemblyCache>
<DeadlockDetectionTimeout>120</DeadlockDetectionTimeout>
<IgnoreGeneratedCode>False</IgnoreGeneratedCode>
</ProjectOptions>
<Targets>
<Target Name="$(ProjectDir)/bin/Debug/GalaSoft.MvvmLight.dll" Analyze="True" AnalyzeAllChildren="True" />
</Targets>
<Rules>
<RuleFiles>
<RuleFile Name="$(FxCopDir)\Rules\DesignRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\GlobalizationRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\InteroperabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\MobilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\NamingRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PerformanceRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\PortabilityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\SecurityRules.dll" Enabled="True" AllRulesEnabled="True" />
<RuleFile Name="$(FxCopDir)\Rules\UsageRules.dll" Enabled="True" AllRulesEnabled="True" />
</RuleFiles>
<Groups />
<Settings />
</Rules>
<FxCopReport Version="1.36">
<Targets>
<Target Name="$(ProjectDir)/bin/Debug/GalaSoft.MvvmLight.dll">
<Modules>
<Module Name="galasoft.mvvmlight.dll">
<Messages>
<Message TypeName="AssembliesShouldHaveValidStrongNames" Category="Microsoft.Design" CheckId="CA2210" Created="2009-06-12 08:20:33Z">
<Issue Name="NoStrongName">
<Item>'GalaSoft.MvvmLight.dll'</Item>
</Issue>
</Message>
</Messages>
<Namespaces>
<Namespace Name="GalaSoft.MvvmLight">
<Types>
<Type Name="ViewModelBase">
<Members>
<Member Name="#IsInDesignModeStatic">
<Accessors>
<Accessor Name="#get_IsInDesignModeStatic()">
<Messages>
<Message TypeName="DoNotIndirectlyExposeMethodsWithLinkDemands" Category="Microsoft.Security" CheckId="CA2122" Created="2009-09-18 22:35:02Z">
<Issue>
<Item>'ViewModelBase.IsInDesignModeStatic.get()'</Item>
<Item>'Process.GetCurrentProcess()'</Item>
<Item>&#xD;&#xA; -&gt;'ViewModelBase.IsInDesignModeStatic.get()'&#xD;&#xA; -&gt;'ViewModelBase.IsInDesignModeStatic.get()'</Item>
</Issue>
<Issue>
<Item>'ViewModelBase.IsInDesignModeStatic.get()'</Item>
<Item>'Process.ProcessName.get()'</Item>
<Item>&#xD;&#xA; -&gt;'ViewModelBase.IsInDesignModeStatic.get()'&#xD;&#xA; -&gt;'ViewModelBase.IsInDesignModeStatic.get()'</Item>
</Issue>
</Message>
</Messages>
</Accessor>
</Accessors>
</Member>
</Members>
</Type>
</Types>
</Namespace>
</Namespaces>
</Module>
</Modules>
</Target>
</Targets>
<Rules>
<Rule TypeName="AssembliesShouldHaveValidStrongNames" Category="Microsoft.Design" CheckId="CA2210">
<Resolution Name="NoStrongName">Sign {0} with a strong name key.</Resolution>
</Rule>
<Rule TypeName="DoNotIndirectlyExposeMethodsWithLinkDemands" Category="Microsoft.Security" CheckId="CA2122">
<Resolution Name="Default">{0} calls into {1} which has a LinkDemand. By making this call, {1} is indirectly exposed to user code. Review the following call stack that might expose a way to circumvent security protection: {2}</Resolution>
</Rule>
</Rules>
</FxCopReport>
</FxCopProject>

Двоичный файл не отображается.

Просмотреть файл

@ -1,140 +0,0 @@
<?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>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{E8EF2656-7165-42D1-9C46-63E66679808D}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>GalaSoft.MvvmLight</RootNamespace>
<AssemblyName>GalaSoft.MvvmLight.WPF4</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<SccProjectName>
</SccProjectName>
<SccLocalPath>
</SccLocalPath>
<SccAuxPath />
<SccProvider>
</SccProvider>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>bin\Debug\GalaSoft.MvvmLight.WPF4.XML</DocumentationFile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>GalaSoft.MvvmLight.WPF4.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xaml" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="WindowsBase" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Command\RelayCommand.cs">
<Link>Command\RelayCommand.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Command\RelayCommandGeneric.cs">
<Link>Command\RelayCommandGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\IExecuteWithObject.cs">
<Link>Helpers\IExecuteWithObject.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\WeakAction.cs">
<Link>Helpers\WeakAction.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Helpers\WeakActionGeneric.cs">
<Link>Helpers\WeakActionGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\ICleanup.cs">
<Link>ICleanup.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\DialogMessage.cs">
<Link>Messaging\DialogMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\GenericMessage.cs">
<Link>Messaging\GenericMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\IMessenger.cs">
<Link>Messaging\IMessenger.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\MessageBase.cs">
<Link>Messaging\MessageBase.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\Messenger.cs">
<Link>Messaging\Messenger.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessage.cs">
<Link>Messaging\NotificationMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageAction.cs">
<Link>Messaging\NotificationMessageAction.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageActionGeneric.cs">
<Link>Messaging\NotificationMessageActionGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageGeneric.cs">
<Link>Messaging\NotificationMessageGeneric.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\NotificationMessageWithCallback.cs">
<Link>Messaging\NotificationMessageWithCallback.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\PropertyChangedMessage.cs">
<Link>Messaging\PropertyChangedMessage.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Messaging\PropertyChangedMessageBase.cs">
<Link>Messaging\PropertyChangedMessageBase.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\Properties\AssemblyInfo.cs">
<Link>Properties\AssemblyInfo.cs</Link>
</Compile>
<Compile Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\ViewModelBase.cs">
<Link>ViewModelBase.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="GalaSoft.MvvmLight.FxCop" />
<None Include="GalaSoft.MvvmLight.WPF4.snk" />
<None Include="Settings.StyleCop" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\..\GalaSoft.MvvmLight\GalaSoft.MvvmLight\License.txt">
<Link>License.txt</Link>
</Content>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- 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>

Просмотреть файл

@ -1,47 +0,0 @@
<StyleCopSettings Version="4.3">
<Parsers>
<Parser ParserId="Microsoft.StyleCop.CSharp.CsParser">
<ParserSettings>
<BooleanProperty Name="AnalyzeDesignerFiles">False</BooleanProperty>
</ParserSettings>
</Parser>
</Parsers>
<Analyzers>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.DocumentationRules">
<AnalyzerSettings>
<BooleanProperty Name="IgnorePrivates">True</BooleanProperty>
<BooleanProperty Name="IgnoreInternals">True</BooleanProperty>
</AnalyzerSettings>
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.NamingRules">
<Rules>
<Rule Name="FieldNamesMustNotBeginWithUnderscore">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.OrderingRules">
<Rules>
<Rule Name="UsingDirectivesMustBePlacedWithinNamespace">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
<Analyzer AnalyzerId="Microsoft.StyleCop.CSharp.ReadabilityRules">
<Rules>
<Rule Name="PrefixLocalCallsWithThis">
<RuleSettings>
<BooleanProperty Name="Enabled">False</BooleanProperty>
</RuleSettings>
</Rule>
</Rules>
<AnalyzerSettings />
</Analyzer>
</Analyzers>
</StyleCopSettings>

Просмотреть файл

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Local" id="e4ac22ab-b21f-4ed4-90b4-e20f2014639e" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are default test settings for a local test run.</Description>
<Deployment enabled="false" />
<Execution>
<TestTypeSpecific />
<AgentRule name="Execution Agents">
</AgentRule>
</Execution>
</TestSettings>

Просмотреть файл

@ -1,26 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<TestSettings name="Trace and Test Impact" id="218ee437-30fa-4251-8a53-78073ca0eb07" xmlns="http://microsoft.com/schemas/VisualStudio/TeamTest/2010">
<Description>These are test settings for Trace and Test Impact.</Description>
<Execution>
<TestTypeSpecific />
<AgentRule name="Execution Agents">
<DataCollectors>
<DataCollector uri="datacollector://microsoft/SystemInfo/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo.SystemInfoDataCollector, Microsoft.VisualStudio.TestTools.DataCollection.SystemInfo, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="System Information">
<Configuration useAgentDefault="true" />
</DataCollector>
<DataCollector uri="datacollector://microsoft/ActionLog/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TestTools.ManualTest.ActionLog.ActionLogPlugin, Microsoft.VisualStudio.TestTools.ManualTest.ActionLog, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Action Recording and Action Log">
<Configuration useAgentDefault="true" />
</DataCollector>
<DataCollector uri="datacollector://microsoft/HttpProxy/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.HttpProxyCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="ASP.NET Client Proxy for IntelliTrace and Test Impact">
<Configuration useAgentDefault="true" />
</DataCollector>
<DataCollector uri="datacollector://microsoft/TestImpact/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TestImpactDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="Test Impact">
<Configuration useAgentDefault="true" />
</DataCollector>
<DataCollector uri="datacollector://microsoft/TraceDebugger/1.0" assemblyQualifiedName="Microsoft.VisualStudio.TraceCollector.TraceDebuggerDataCollector, Microsoft.VisualStudio.TraceCollector, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" friendlyName="IntelliTrace">
<Configuration useAgentDefault="true" />
</DataCollector>
</DataCollectors>
</AgentRule>
</Execution>
</TestSettings>

Просмотреть файл

@ -1,54 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectForTemplate", "ProjectForTemplate\ProjectForTemplate.csproj", "{A59921C9-B4D1-4D58-B42B-35010922323C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectForTemplateSL", "ProjectForTemplateSL\ProjectForTemplateSL.csproj", "{54C85759-F8C8-40D4-A13F-9531F2B3C370}"
EndProject
Global
GlobalSection(TeamFoundationVersionControl) = preSolution
SccNumberOfProjects = 3
SccEnterpriseProvider = {4CA58AB2-18FA-4F8D-95D4-32DDF27D184C}
SccTeamFoundationServer = https://tfs08.codeplex.com/
SccLocalPath0 = .
SccProjectUniqueName1 = ProjectForTemplate\\ProjectForTemplate.csproj
SccProjectName1 = ProjectForTemplate
SccLocalPath1 = ProjectForTemplate
SccProjectUniqueName2 = ProjectForTemplateSL\\ProjectForTemplateSL.csproj
SccProjectName2 = ProjectForTemplateSL
SccLocalPath2 = ProjectForTemplateSL
EndGlobalSection
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{A59921C9-B4D1-4D58-B42B-35010922323C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Debug|x86.ActiveCfg = Debug|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Release|Any CPU.Build.0 = Release|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{A59921C9-B4D1-4D58-B42B-35010922323C}.Release|x86.ActiveCfg = Release|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Debug|Any CPU.Build.0 = Debug|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Debug|x86.ActiveCfg = Debug|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Release|Any CPU.ActiveCfg = Release|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Release|Any CPU.Build.0 = Release|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{54C85759-F8C8-40D4-A13F-9531F2B3C370}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше