diff options
author | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 13:02:25 -0700 |
---|---|---|
committer | Jason Smith <jason.smith@xamarin.com> | 2016-03-22 16:13:41 -0700 |
commit | 17fdde66d94155fc62a034fa6658995bef6fd6e5 (patch) | |
tree | b5e5073a2a7b15cdbe826faa5c763e270a505729 /Xamarin.Forms.Xaml.Design | |
download | xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.gz xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.tar.bz2 xamarin-forms-17fdde66d94155fc62a034fa6658995bef6fd6e5.zip |
Initial import
Diffstat (limited to 'Xamarin.Forms.Xaml.Design')
5 files changed, 113 insertions, 0 deletions
diff --git a/Xamarin.Forms.Xaml.Design/AttributeTableBuilder.cs b/Xamarin.Forms.Xaml.Design/AttributeTableBuilder.cs new file mode 100644 index 00000000..4b3689b6 --- /dev/null +++ b/Xamarin.Forms.Xaml.Design/AttributeTableBuilder.cs @@ -0,0 +1,14 @@ +using Microsoft.Windows.Design; + +namespace Xamarin.Forms.Xaml.Design +{ + class AttributeTableBuilder : Microsoft.Windows.Design.Metadata.AttributeTableBuilder + { + public AttributeTableBuilder() + { + // Turn off validation of values, which doesn't work for OnPlatform/OnIdiom + AddCustomAttributes(typeof (ArrayExtension).Assembly, + new XmlnsSupportsValidationAttribute("http://xamarin.com/schemas/2014/forms", false)); + } + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.Design/Properties/AssemblyInfo.cs b/Xamarin.Forms.Xaml.Design/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..3b978884 --- /dev/null +++ b/Xamarin.Forms.Xaml.Design/Properties/AssemblyInfo.cs @@ -0,0 +1,7 @@ +using System.Reflection; +using Microsoft.Windows.Design.Metadata; +using Xamarin.Forms.Xaml.Design; + +[assembly: AssemblyTitle("Xamarin.Forms.Xaml.Design")] +[assembly: AssemblyDescription("Provides the design-time metadata for the XAML language service.")] +[assembly: ProvideMetadata(typeof (RegisterMetadata))]
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.Design/RegisterMetadata.cs b/Xamarin.Forms.Xaml.Design/RegisterMetadata.cs new file mode 100644 index 00000000..be3b2b88 --- /dev/null +++ b/Xamarin.Forms.Xaml.Design/RegisterMetadata.cs @@ -0,0 +1,9 @@ +using Microsoft.Windows.Design.Metadata; + +namespace Xamarin.Forms.Xaml.Design +{ + class RegisterMetadata : IProvideAttributeTable + { + public AttributeTable AttributeTable => new AttributeTableBuilder().CreateTable(); + } +}
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.Design/Xamarin.Forms.Xaml.Design.csproj b/Xamarin.Forms.Xaml.Design/Xamarin.Forms.Xaml.Design.csproj new file mode 100644 index 00000000..de727cb0 --- /dev/null +++ b/Xamarin.Forms.Xaml.Design/Xamarin.Forms.Xaml.Design.csproj @@ -0,0 +1,79 @@ +<?xml version="1.0" encoding="utf-8"?> +<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> + <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> + <PropertyGroup> + <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> + <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> + <ProjectGuid>{65BC4888-CC59-428A-9B75-540CF1C09480}</ProjectGuid> + <OutputType>Library</OutputType> + <AppDesignerFolder>Properties</AppDesignerFolder> + <RootNamespace>Xamarin.Forms.Xaml.Design</RootNamespace> + <AssemblyName>Xamarin.Forms.Xaml.Design</AssemblyName> + <TargetFrameworkVersion>v4.5</TargetFrameworkVersion> + <FileAlignment>512</FileAlignment> + <NuGetPackageImportStamp> + </NuGetPackageImportStamp> + </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 Condition=" '$(OS)' != 'Unix' "> + <Reference Include="Microsoft.Windows.Design.Extensibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL"> + <SpecificVersion>False</SpecificVersion> + <HintPath>..\lib\Microsoft.Windows.Design.Extensibility.dll</HintPath> + <Private>False</Private> + </Reference> + <Reference Include="System" /> + <Reference Include="System.Core" /> + <Reference Include="Microsoft.CSharp" /> + <Reference Include="System.Xaml" /> + </ItemGroup> + <ItemGroup> + <Compile Include="..\Xamarin.Forms.Core\Properties\GlobalAssemblyInfo.cs"> + <Link>Properties\GlobalAssemblyInfo.cs</Link> + </Compile> + </ItemGroup> + <ItemGroup Condition=" '$(OS)' != 'Unix' "> + <Compile Include="AttributeTableBuilder.cs" /> + <Compile Include="Properties\AssemblyInfo.cs" /> + <Compile Include="RegisterMetadata.cs" /> + </ItemGroup> + <ItemGroup> + <ProjectReference Include="..\Xamarin.Forms.Core\Xamarin.Forms.Core.csproj"> + <Project>{57b8b73d-c3b5-4c42-869e-7b2f17d354ac}</Project> + <Name>Xamarin.Forms.Core</Name> + </ProjectReference> + <ProjectReference Include="..\Xamarin.Forms.Xaml\Xamarin.Forms.Xaml.csproj"> + <Project>{9db2f292-8034-4e06-89ad-98bbda4306b9}</Project> + <Name>Xamarin.Forms.Xaml</Name> + <GenerateDesignMetadata>true</GenerateDesignMetadata> + <Private>False</Private> + </ProjectReference> + </ItemGroup> + <ItemGroup Condition=" '$(OS)' != 'Unix' "> + <None Include="packages.config" /> + </ItemGroup> + <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> + <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets') And '$(OS)' != 'Unix' " /> + <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild" Condition=" '$(OS)' != 'Unix' "> + <PropertyGroup> + <ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText> + </PropertyGroup> + <Error Condition="!Exists('..\packages\Xamarin.Forms.Design.1.0.14-pre\build\Xamarin.Forms.Design.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\Xamarin.Forms.Design.1.0.14-pre\build\Xamarin.Forms.Design.targets'))" /> + </Target> + <Import Project="..\packages\Xamarin.Forms.Design.1.0.14-pre\build\Xamarin.Forms.Design.targets" Condition="Exists('..\packages\Xamarin.Forms.Design.1.0.14-pre\build\Xamarin.Forms.Design.targets') And '$(OS)' != 'Unix' " /> +</Project>
\ No newline at end of file diff --git a/Xamarin.Forms.Xaml.Design/packages.config b/Xamarin.Forms.Xaml.Design/packages.config new file mode 100644 index 00000000..6e99fb80 --- /dev/null +++ b/Xamarin.Forms.Xaml.Design/packages.config @@ -0,0 +1,4 @@ +<?xml version="1.0" encoding="utf-8"?> +<packages> + <package id="Xamarin.Forms.Design" version="1.0.14-pre" targetFramework="net45" /> +</packages>
\ No newline at end of file |