Skip to content

Commit

Permalink
Add SL4/WP7 versions of RxUI.Routing
Browse files Browse the repository at this point in the history
  • Loading branch information
anaisbetts committed Jul 18, 2011
1 parent f974f86 commit 1b636db
Show file tree
Hide file tree
Showing 5 changed files with 281 additions and 2 deletions.
110 changes: 110 additions & 0 deletions ReactiveUI.Routing/ReactiveUI.Routing_SL4.csproj
@@ -0,0 +1,110 @@
<?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>{1BBF9541-7F3C-4A98-B5F8-D231AE664574}</ProjectGuid>
<ProjectTypeGuids>{A1591282-1198-4647-A2B1-27E5FF5F6F3B};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ReactiveUI.Routing</RootNamespace>
<AssemblyName>ReactiveUI.Routing_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>
</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>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release\SL4\</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>Bin\Release\SL4\ReactiveUI.Routing_SL4.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Practices.ServiceLocation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=176052f22c4ce19f, processorArchitecture=MSIL" />
<Reference Include="mscorlib" />
<Reference Include="System.ComponentModel.DataAnnotations, Version=2.0.5.0, Culture=neutral, PublicKeyToken=ddd0da4d3e678217, processorArchitecture=MSIL" />
<Reference Include="System.Reactive">
<Private>True</Private>
<HintPath>..\ext\SL4\System.Reactive.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<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="Interfaces.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RoutedViewHost.cs" />
<Compile Include="RoutingState.cs" />
<Compile Include="RxRouting.cs" />
<Compile Include="ViewModelViewHost.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ReactiveUI.Serialization\ReactiveUI.Serialization_SL4.csproj">
<Project>{3DB8B68E-1229-45A5-90CD-6F72D086FD3F}</Project>
<Name>ReactiveUI.Serialization_SL4</Name>
</ProjectReference>
<ProjectReference Include="..\ReactiveUI.Xaml\ReactiveUI.Xaml_SL4.csproj">
<Project>{AE8FF678-935D-42CF-A899-6E73DF9A3B0B}</Project>
<Name>ReactiveUI.Xaml_SL4</Name>
</ProjectReference>
<ProjectReference Include="..\ReactiveUI\ReactiveUI_SL4.csproj">
<Project>{3DB8B68E-1229-45A5-90CD-6F72D086FDFF}</Project>
<Name>ReactiveUI_SL4</Name>
</ProjectReference>
</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>
121 changes: 121 additions & 0 deletions ReactiveUI.Routing/ReactiveUI.Routing_WP7.csproj
@@ -0,0 +1,121 @@
<?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>{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}</ProjectGuid>
<ProjectTypeGuids>{C089C8C0-30E0-4E22-80C0-CE093F111A43};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>ReactiveUI.Routing</RootNamespace>
<AssemblyName>ReactiveUI.Routing_WP7</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<SilverlightVersion>$(TargetFrameworkVersion)</SilverlightVersion>
<TargetFrameworkProfile>WindowsPhone</TargetFrameworkProfile>
<TargetFrameworkIdentifier>Silverlight</TargetFrameworkIdentifier>
<SilverlightApplication>false</SilverlightApplication>
<ValidateXaml>true</ValidateXaml>
<ThrowErrorsInValidation>true</ThrowErrorsInValidation>
<CodeContractsAssemblyMode>0</CodeContractsAssemblyMode>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>Bin\Debug\WP7\</OutputPath>
<DefineConstants>DEBUG;TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeContractsEnableRuntimeChecking>True</CodeContractsEnableRuntimeChecking>
<CodeContractsRuntimeOnlyPublicSurface>False</CodeContractsRuntimeOnlyPublicSurface>
<CodeContractsRuntimeThrowOnFailure>True</CodeContractsRuntimeThrowOnFailure>
<CodeContractsRuntimeCallSiteRequires>False</CodeContractsRuntimeCallSiteRequires>
<CodeContractsRunCodeAnalysis>False</CodeContractsRunCodeAnalysis>
<CodeContractsNonNullObligations>False</CodeContractsNonNullObligations>
<CodeContractsBoundsObligations>False</CodeContractsBoundsObligations>
<CodeContractsArithmeticObligations>False</CodeContractsArithmeticObligations>
<CodeContractsContainerAnalysis>False</CodeContractsContainerAnalysis>
<CodeContractsRedundantAssumptions>False</CodeContractsRedundantAssumptions>
<CodeContractsRunInBackground>True</CodeContractsRunInBackground>
<CodeContractsShowSquigglies>False</CodeContractsShowSquigglies>
<CodeContractsUseBaseLine>False</CodeContractsUseBaseLine>
<CodeContractsEmitXMLDocs>False</CodeContractsEmitXMLDocs>
<CodeContractsCustomRewriterAssembly />
<CodeContractsCustomRewriterClass />
<CodeContractsLibPaths />
<CodeContractsExtraRewriteOptions />
<CodeContractsExtraAnalysisOptions />
<CodeContractsBaseLineFile />
<CodeContractsCacheAnalysisResults>False</CodeContractsCacheAnalysisResults>
<CodeContractsRuntimeCheckingLevel>Full</CodeContractsRuntimeCheckingLevel>
<CodeContractsReferenceAssembly>%28none%29</CodeContractsReferenceAssembly>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>Bin\Release\WP7\</OutputPath>
<DefineConstants>TRACE;SILVERLIGHT;WINDOWS_PHONE</DefineConstants>
<NoStdLib>true</NoStdLib>
<NoConfig>true</NoConfig>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>Bin\Release\WP7\ReactiveUI.Routing_WP7.xml</DocumentationFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Practices.ServiceLocation">
<HintPath>..\ext\WP7\Microsoft.Practices.ServiceLocation.dll</HintPath>
</Reference>
<Reference Include="System.Observable" />
<Reference Include="System.Reactive.Windows.Threading">
<Private>True</Private>
<HintPath>..\ext\WP7\System.Reactive.Windows.Threading.dll</HintPath>
</Reference>
<Reference Include="System.Reactive">
<Private>True</Private>
<HintPath>..\ext\WP7\System.Reactive.dll</HintPath>
</Reference>
<Reference Include="System.Runtime.Serialization" />
<Reference Include="System.Windows" />
<Reference Include="system" />
<Reference Include="System.Core" />
<Reference Include="System.Windows.Interactivity, Version=3.7.5.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" />
<Reference Include="System.Xml" />
<Reference Include="System.Net" />
</ItemGroup>
<ItemGroup>
<Compile Include="Interfaces.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="RoutedViewHost.cs" />
<Compile Include="RoutingState.cs" />
<Compile Include="RxRouting.cs" />
<Compile Include="ViewModelViewHost.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\ReactiveUI.Serialization\ReactiveUI.Serialization_WP7.csproj">
<Project>{FAEA4F2E-017C-47AF-B467-4D2C7290CDEF}</Project>
<Name>ReactiveUI.Serialization_WP7</Name>
</ProjectReference>
<ProjectReference Include="..\ReactiveUI.Xaml\ReactiveUI.Xaml_WP7.csproj">
<Project>{06C34984-B706-49BF-85BB-9282DD6238D1}</Project>
<Name>ReactiveUI.Xaml_WP7</Name>
</ProjectReference>
<ProjectReference Include="..\ReactiveUI\ReactiveUI_WP7.csproj">
<Project>{FAEA4F2E-017C-47AF-B467-4D2C7210CDEF}</Project>
<Name>ReactiveUI_WP7</Name>
</ProjectReference>
</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>
2 changes: 1 addition & 1 deletion ReactiveUI.Routing/RoutedViewHost.cs
Expand Up @@ -19,7 +19,7 @@ public class RoutedViewHost : ContentControl
set { SetValue(RouterProperty, value); }
}
public static readonly DependencyProperty RouterProperty =
DependencyProperty.Register("Router", typeof(RoutingState), typeof(RoutedViewHost), new UIPropertyMetadata(null));
DependencyProperty.Register("Router", typeof(RoutingState), typeof(RoutedViewHost), new PropertyMetadata(null));

public RoutedViewHost()
{
Expand Down
2 changes: 1 addition & 1 deletion ReactiveUI.Routing/ViewModelViewHost.cs
Expand Up @@ -14,7 +14,7 @@ public class ViewModelViewHost : ContentControl
set { SetValue(ViewModelProperty, value); }
}
public static readonly DependencyProperty ViewModelProperty =
DependencyProperty.Register("ViewModel", typeof(IReactiveNotifyPropertyChanged), typeof(ViewModelViewHost), new UIPropertyMetadata(null));
DependencyProperty.Register("ViewModel", typeof(IReactiveNotifyPropertyChanged), typeof(ViewModelViewHost), new PropertyMetadata(null));

public ViewModelViewHost()
{
Expand Down
48 changes: 48 additions & 0 deletions ReactiveUI.sln
Expand Up @@ -62,6 +62,14 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Testing_35", "Re
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Testing_WP7", "ReactiveUI.Testing\ReactiveUI.Testing_WP7.csproj", "{EDA0969D-5613-4F84-B97D-3658ACEE3D29}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Routing", "ReactiveUI.Routing\ReactiveUI.Routing.csproj", "{67038157-092E-4D72-BAF4-049EB1532264}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Routing_SL4", "ReactiveUI.Routing\ReactiveUI.Routing_SL4.csproj", "{1BBF9541-7F3C-4A98-B5F8-D231AE664574}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Routing_WP7", "ReactiveUI.Routing\ReactiveUI.Routing_WP7.csproj", "{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReactiveUI.Routing.Tests", "ReactiveUI.Routing.Tests\ReactiveUI.Routing.Tests.csproj", "{7584D9EF-E24C-4A60-B617-C42CB1EA606E}"
EndProject
Global
GlobalSection(TestCaseManagementSettings) = postSolution
CategoryFile = ReactiveUI.vsmdi
Expand Down Expand Up @@ -351,6 +359,46 @@ Global
{EDA0969D-5613-4F84-B97D-3658ACEE3D29}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{EDA0969D-5613-4F84-B97D-3658ACEE3D29}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{EDA0969D-5613-4F84-B97D-3658ACEE3D29}.Release|x86.ActiveCfg = Release|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Debug|Any CPU.Build.0 = Debug|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Debug|x86.ActiveCfg = Debug|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Release|Any CPU.ActiveCfg = Release|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Release|Any CPU.Build.0 = Release|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{67038157-092E-4D72-BAF4-049EB1532264}.Release|x86.ActiveCfg = Release|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Debug|Any CPU.Build.0 = Debug|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Debug|x86.ActiveCfg = Debug|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Release|Any CPU.ActiveCfg = Release|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Release|Any CPU.Build.0 = Release|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{1BBF9541-7F3C-4A98-B5F8-D231AE664574}.Release|x86.ActiveCfg = Release|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Debug|x86.ActiveCfg = Debug|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Release|Any CPU.Build.0 = Release|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{2B1F887C-E4B9-441A-8147-6A3A00C30BBA}.Release|x86.ActiveCfg = Release|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Debug|x86.ActiveCfg = Debug|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Release|Any CPU.Build.0 = Release|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{7584D9EF-E24C-4A60-B617-C42CB1EA606E}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down

0 comments on commit 1b636db

Please sign in to comment.