Skip to content

Commit

Permalink
Create 7.1 version of Phone libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
hartez committed Oct 16, 2011
1 parent f073288 commit 66de74e
Show file tree
Hide file tree
Showing 18 changed files with 312 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
packages
Thumbs.db
7 changes: 7 additions & 0 deletions EZLibrary.WindowsPhone.7.1/App.xaml
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="EZLibrary.WindowsPhone._7._1.App" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:vm="clr-namespace:EZLibrary.WindowsPhone._7._1.ViewModel" mc:Ignorable="d">
<Application.Resources>
<!--Global View Model Locator-->
<vm:ViewModelLocator x:Key="Locator" d:IsDataSource="True" />
</Application.Resources>
</Application>
160 changes: 160 additions & 0 deletions EZLibrary.WindowsPhone.7.1/EZLibrary.WindowsPhone.7.1.csproj
@@ -0,0 +1,160 @@
<?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>10.0.20506</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}</ProjectGuid>
<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>EZLibrary.WindowsPhone._7._1</RootNamespace>
<AssemblyName>EZLibrary.WindowsPhone.7.1</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<TargetFrameworkProfile>WindowsPhone71</TargetFrameworkProfile>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="GalaSoft.MvvmLight.Extras.WP71">
<HintPath>..\packages\MvvmLight.3.0.3\lib\sl4-windowsphone71\GalaSoft.MvvmLight.Extras.WP71.dll</HintPath>
</Reference>
<Reference Include="GalaSoft.MvvmLight.WP71">
<HintPath>..\packages\MvvmLight.3.0.3\lib\sl4-windowsphone71\GalaSoft.MvvmLight.WP71.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Phone" />
<Reference Include="Microsoft.Phone.Controls.Toolkit">
<HintPath>..\packages\SilverlightToolkitWP.4.2011.8.17\lib\sl4-windowsphone71\Microsoft.Phone.Controls.Toolkit.dll</HintPath>
</Reference>
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Interactivity, Version=3.8.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\packages\MvvmLight.3.0.3\lib\sl4-windowsphone71\System.Windows.Interactivity.dll</HintPath>
</Reference>
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
<Reference Include="mscorlib.extensions" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\EZLibrary.4.0\Collections\Generic\ObservableStack.cs">
<Link>ObservableStack.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.4.0\StringExtensions.cs">
<Link>StringExtensions.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\DoubleTapTrigger.cs">
<Link>Interactivity\DoubleTapTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\DragAndDropBehavior.cs">
<Link>Interactivity\DragAndDropBehavior.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\DragCompletedTrigger.cs">
<Link>Interactivity\DragCompletedTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\DragDelta.cs">
<Link>Interactivity\DragDelta.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\DragStartedTrigger.cs">
<Link>Interactivity\DragStartedTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\FlickTrigger.cs">
<Link>Interactivity\FlickTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\GestureBehavior.cs">
<Link>Interactivity\GestureBehavior.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\GestureTrigger.cs">
<Link>Interactivity\GestureTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\HoldTrigger.cs">
<Link>Interactivity\HoldTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\PinchCompletedTrigger.cs">
<Link>Interactivity\PinchCompletedTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\PinchDeltaTrigger.cs">
<Link>Interactivity\PinchDeltaTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\PinchStartedTrigger.cs">
<Link>Interactivity\PinchStartedTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\Interactivity\TapTrigger.cs">
<Link>Interactivity\TapTrigger.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\LittleWatson.cs">
<Link>LittleWatson.cs</Link>
</Compile>
<Compile Include="..\EZLibrary.WindowsPhone\NetworkHelper.cs">
<Link>NetworkHelper.cs</Link>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="ViewModel\MainViewModel.cs" />
<Compile Include="ViewModel\ViewModelLocator.cs" />
</ItemGroup>
<ItemGroup>
<Page Include="App.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
<None Include="Thumbs.db" />
<None Include="Toolkit.Content\Thumbs.db" />
</ItemGroup>
<ItemGroup>
<Resource Include="Toolkit.Content\ApplicationBar.Select.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Toolkit.Content\ApplicationBar.Delete.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Toolkit.Content\ApplicationBar.Check.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Toolkit.Content\ApplicationBar.Cancel.png" />
</ItemGroup>
<ItemGroup>
<Content Include="..\EZLibrary.WindowsPhone\Interactivity\readme.txt">
<Link>Interactivity\readme.txt</Link>
</Content>
<Content Include="README_FIRST.txt" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
<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>
37 changes: 37 additions & 0 deletions EZLibrary.WindowsPhone.7.1/Properties/AssemblyInfo.cs
@@ -0,0 +1,37 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Resources;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("EZLibrary.WindowsPhone._7._1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Microsoft")]
[assembly: AssemblyProduct("EZLibrary.WindowsPhone._7._1")]
[assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("2e4688d9-9616-44d2-9b8e-7d22565f22e5")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en-US")]
3 changes: 3 additions & 0 deletions EZLibrary.WindowsPhone.7.1/README_FIRST.txt
@@ -0,0 +1,3 @@
For the Silverlight for Windows Phone Toolkit make sure that you have
marked the icons in the "Toolkit.Content" folder as content. That way they
can be used as the icons for the ApplicationBar control.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 34 additions & 0 deletions EZLibrary.WindowsPhone.7.1/ViewModel/MainViewModel.cs
@@ -0,0 +1,34 @@
using GalaSoft.MvvmLight;

namespace EZLibrary.WindowsPhone._7._1.ViewModel
{
/// <summary>
/// This class contains properties that the main View can data bind to.
/// <para>
/// Use the <strong>mvvminpc</strong> snippet to add bindable properties to this ViewModel.
/// </para>
/// <para>
/// You can also use Blend to data bind with the tool's support.
/// </para>
/// <para>
/// See http://www.galasoft.ch/mvvm
/// </para>
/// </summary>
public class MainViewModel : ViewModelBase
{
/// <summary>
/// Initializes a new instance of the MainViewModel class.
/// </summary>
public MainViewModel()
{
////if (IsInDesignMode)
////{
//// // Code runs in Blend --> create design time data.
////}
////else
////{
//// // Code runs "for real"
////}
}
}
}
58 changes: 58 additions & 0 deletions EZLibrary.WindowsPhone.7.1/ViewModel/ViewModelLocator.cs
@@ -0,0 +1,58 @@
/*
In App.xaml:
<Application.Resources>
<vm:ViewModelLocatorTemplate xmlns:vm="clr-namespace:EZLibrary.WindowsPhone._7._1"
x:Key="Locator" />
</Application.Resources>
In the View:
DataContext="{Binding Source={StaticResource Locator}, Path=ViewModelName}"
You can also use Blend to do all this with the tool's support.
See http://www.galasoft.ch/mvvm
*/

using GalaSoft.MvvmLight;

namespace EZLibrary.WindowsPhone._7._1.ViewModel
{
/// <summary>
/// This class contains static references to all the view models in the
/// application and provides an entry point for the bindings.
/// </summary>
public class ViewModelLocator
{
private static MainViewModel _main;

/// <summary>
/// Initializes a new instance of the ViewModelLocator class.
/// </summary>
public ViewModelLocator()
{
////if (ViewModelBase.IsInDesignModeStatic)
////{
//// // Create design time services and viewmodels
////}
////else
////{
//// // Create run time services and view models
////}

_main = new MainViewModel();
}

/// <summary>
/// Gets the Main property which defines the main viewmodel.
/// </summary>
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance",
"CA1822:MarkMembersAsStatic",
Justification = "This non-static member is needed for data binding purposes.")]
public MainViewModel Main
{
get
{
return _main;
}
}
}
}
5 changes: 5 additions & 0 deletions EZLibrary.WindowsPhone.7.1/packages.config
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="MvvmLight" version="3.0.3" />
<package id="SilverlightToolkitWP" version="4.2011.8.17" />
</packages>
1 change: 0 additions & 1 deletion EZLibrary.WindowsPhone/EZLibrary.WindowsPhone.csproj
Expand Up @@ -97,7 +97,6 @@
<ItemGroup> <ItemGroup>
<None Include="packages.config" /> <None Include="packages.config" />
<None Include="Thumbs.db" /> <None Include="Thumbs.db" />
<None Include="Toolkit.Content\Thumbs.db" />
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.$(TargetFrameworkProfile).Overrides.targets" />
<Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" /> <Import Project="$(MSBuildExtensionsPath)\Microsoft\Silverlight for Phone\$(TargetFrameworkVersion)\Microsoft.Silverlight.CSharp.targets" />
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions EZLibrary.sln
Expand Up @@ -12,6 +12,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
.nuget\NuGet.targets = .nuget\NuGet.targets .nuget\NuGet.targets = .nuget\NuGet.targets
EndProjectSection EndProjectSection
EndProject EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "EZLibrary.WindowsPhone.7.1", "EZLibrary.WindowsPhone.7.1\EZLibrary.WindowsPhone.7.1.csproj", "{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}"
EndProject
Global Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU Debug|Any CPU = Debug|Any CPU
Expand All @@ -26,6 +28,10 @@ Global
{A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Debug|Any CPU.Build.0 = Debug|Any CPU {A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Release|Any CPU.ActiveCfg = Release|Any CPU {A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Release|Any CPU.Build.0 = Release|Any CPU {A3A7FE22-AC1A-4463-90D3-4262BA7A6371}.Release|Any CPU.Build.0 = Release|Any CPU
{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{707F8B31-0130-4A49-8DFC-3BC0D4346BEA}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection EndGlobalSection
GlobalSection(SolutionProperties) = preSolution GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE HideSolutionNode = FALSE
Expand Down

0 comments on commit 66de74e

Please sign in to comment.