Skip to content

Commit f1fe78d

Browse files
committed
Input: Split out design tools
1 parent a68dd95 commit f1fe78d

File tree

10 files changed

+379
-4
lines changed

10 files changed

+379
-4
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/Microsoft.Toolkit.Uwp.UI.Controls.Core.DesignTools.csproj

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,8 @@
9191
<Compile Include="Controls\Menu.Typedata.cs" />
9292
<Compile Include="Controls\MenuItem.Metadata.cs" />
9393
<Compile Include="Controls\MenuItem.Typedata.cs" />
94-
<Compile Include="Controls\RadialGauge.Metadata.cs" />
95-
<Compile Include="Controls\RadialGauge.Typedata.cs" />
9694
<Compile Include="Controls\RadialProgressBar.Metadata.cs" />
9795
<Compile Include="Controls\RadialProgressBar.Typedata.cs" />
98-
<Compile Include="Controls\RangeSelector.Metadata.cs" />
99-
<Compile Include="Controls\RangeSelector.Typedata.cs" />
10096
<Compile Include="Controls\RotatorTile.Metadata.cs" />
10197
<Compile Include="Controls\RotatorTile.Typedata.cs" />
10298
<Compile Include="Controls\ScrollHeader.Metadata.cs" />
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
4+
<PropertyGroup>
5+
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6+
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
7+
<ProjectGuid>{3307BC1D-5D71-41C6-A1B3-B113B8242D08}</ProjectGuid>
8+
<OutputType>Library</OutputType>
9+
<AppDesignerFolder>Properties</AppDesignerFolder>
10+
<RootNamespace>Microsoft.Toolkit.Uwp.UI.Controls.Design</RootNamespace>
11+
<AssemblyName>Microsoft.Toolkit.Uwp.UI.Controls.Input.DesignTools</AssemblyName>
12+
<FileAlignment>512</FileAlignment>
13+
<TargetPlatformVersion>8.1</TargetPlatformVersion>
14+
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
15+
<ValidateFrameworkCompatibility>false</ValidateFrameworkCompatibility>
16+
</PropertyGroup>
17+
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
18+
<DebugSymbols>true</DebugSymbols>
19+
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.Input\bin\Debug\uap10.0.17763\Design\</OutputPath>
20+
<DebugType>full</DebugType>
21+
<Optimize>false</Optimize>
22+
<DefineConstants>TRACE;DEBUG</DefineConstants>
23+
<PlatformTarget>x86</PlatformTarget>
24+
</PropertyGroup>
25+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
26+
<OutputPath>..\Microsoft.Toolkit.Uwp.UI.Controls.Input\bin\Release\uap10.0.17763\Design\</OutputPath>
27+
<DebugType>pdbonly</DebugType>
28+
<PlatformTarget>x86</PlatformTarget>
29+
<Optimize>true</Optimize>
30+
<DefineConstants>TRACE</DefineConstants>
31+
</PropertyGroup>
32+
<PropertyGroup>
33+
<NoWarn>$(NoWarn);0618</NoWarn>
34+
<AssetTargetFallback>$(AssetTargetFallback);uap10.0.17763</AssetTargetFallback>
35+
</PropertyGroup>
36+
<ItemGroup>
37+
<Reference Include="System.Runtime" />
38+
<Reference Include="System.ObjectModel" />
39+
<Reference Include="System.Runtime.WindowsRuntime" />
40+
<Reference Include="System.Runtime.InteropServices.WindowsRuntime" />
41+
<Reference Include="Microsoft.VisualStudio.DesignTools.Extensibility">
42+
<SpecificVersion>False</SpecificVersion>
43+
<Private>False</Private>
44+
</Reference>
45+
<Reference Include="Microsoft.VisualStudio.DesignTools.Interaction">
46+
<SpecificVersion>False</SpecificVersion>
47+
<Private>False</Private>
48+
</Reference>
49+
<Reference Include="System" />
50+
<Reference Include="System.Core" />
51+
<Reference Include="System.Xml.Linq" />
52+
<Reference Include="System.Data.DataSetExtensions" />
53+
<Reference Include="Microsoft.CSharp" />
54+
<Reference Include="System.Data" />
55+
<Reference Include="System.Xml" />
56+
<Reference Include="Windows, Version=255.255.255.255, Culture=neutral, processorArchitecture=MSIL">
57+
<SpecificVersion>False</SpecificVersion>
58+
<HintPath>$(MSBuildProgramFiles32)\Windows Kits\10\UnionMetadata\10.0.17763.0\Windows.winmd</HintPath>
59+
</Reference>
60+
<Reference Include="WindowsBase" />
61+
<Reference Include="PresentationCore" />
62+
<Reference Include="PresentationFramework" />
63+
</ItemGroup>
64+
<ItemGroup Label="WinRT References">
65+
<Reference Include="System.Xaml" />
66+
<Reference Include="System.Runtime.WindowsRuntime.UI.Xaml" />
67+
<Reference Include="Windows.Foundation.FoundationContract">
68+
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.FoundationContract\3.0.0.0\Windows.Foundation.FoundationContract.winmd</HintPath>
69+
<Aliases>WindowsRuntime</Aliases>
70+
<Private>False</Private>
71+
</Reference>
72+
<Reference Include="Windows.Foundation.UniversalApiContract">
73+
<HintPath>$(ProgramFiles)\Windows Kits\10\References\10.0.17763.0\Windows.Foundation.UniversalApiContract\7.0.0.0\Windows.Foundation.UniversalApiContract.winmd</HintPath>
74+
<Aliases>WindowsRuntime</Aliases>
75+
<Private>False</Private>
76+
</Reference>
77+
</ItemGroup>
78+
<ItemGroup>
79+
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\Constants.cs" Link="Common\Constants.cs" />
80+
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\MetadataRegistrationBase.cs" Link="Common\MetadataRegistrationBase.cs" />
81+
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\Common\PlatformTypes.cs" Link="Common\PlatformTypes.cs" />
82+
<Compile Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Core.Design\MetadataRegistration.cs" Link="MetadataRegistration.cs" />
83+
<Compile Include="Controls\RadialGauge.Metadata.cs" />
84+
<Compile Include="Controls\RadialGauge.Typedata.cs" />
85+
<Compile Include="Controls\RangeSelector.Metadata.cs" />
86+
<Compile Include="Controls\RangeSelector.Typedata.cs" />
87+
<Compile Include="Properties\AssemblyInfo.cs">
88+
<SubType>Code</SubType>
89+
</Compile>
90+
<Compile Include="Properties\Resources.Designer.cs">
91+
<AutoGen>True</AutoGen>
92+
<DesignTime>True</DesignTime>
93+
<DependentUpon>Resources.resx</DependentUpon>
94+
</Compile>
95+
<EmbeddedResource Include="Properties\Resources.resx">
96+
<Generator>ResXFileCodeGenerator</Generator>
97+
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
98+
</EmbeddedResource>
99+
<AppDesigner Include="Properties\" />
100+
</ItemGroup>
101+
<ItemGroup>
102+
<EmbeddedResource Include="..\Microsoft.Toolkit.Uwp.UI.Controls.Input\bin\$(Configuration)\uap10.0.17763\Microsoft.Toolkit.Uwp.UI.Controls.Input.xml">
103+
<Link>Microsoft.Toolkit.Uwp.UI.Controls.Input.xml</Link>
104+
<Visible>False</Visible>
105+
</EmbeddedResource>
106+
</ItemGroup>
107+
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
108+
<!-- No-op to avoid build error when packing solution from commandline -->
109+
<Target Name="Pack" />
110+
</Project>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
// See the LICENSE file in the project root for more information.
4+
5+
using System.Reflection;
6+
using System.Runtime.InteropServices;
7+
8+
// General Information about an assembly is controlled through the following
9+
// set of attributes. Change these attribute values to modify the information
10+
// associated with an assembly.
11+
[assembly: AssemblyTitle("Windows Community Toolkit Controls (Design)")]
12+
[assembly: AssemblyDescription("Design time support for Windows Community Toolkit Controls")]
13+
[assembly: AssemblyConfiguration("")]
14+
[assembly: AssemblyCompany("Microsoft")]
15+
[assembly: AssemblyProduct("Windows Community Toolkit")]
16+
[assembly: AssemblyCopyright("Copyright © Microsoft 2018")]
17+
[assembly: AssemblyTrademark("")]
18+
[assembly: AssemblyCulture("")]
19+
20+
// Setting ComVisible to false makes the types in this assembly not visible
21+
// to COM components. If you need to access a type in this assembly from
22+
// COM, set the ComVisible attribute to true on that type.
23+
[assembly: ComVisible(false)]
24+
25+
//In order to begin building localizable applications, set
26+
//<UICulture>CultureYouAreCodingWith</UICulture> in your .csproj file
27+
//inside a <PropertyGroup>. For example, if you are using US English
28+
//in your source files, set the <UICulture> to en-US. Then uncomment
29+
//the NeutralResourceLanguage attribute below. Update the "en-US" in
30+
//the line below to match the UICulture setting in the project file.
31+
32+
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]

Microsoft.Toolkit.Uwp.UI.Controls.Input.Design/Properties/Resources.Designer.cs

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<root>
3+
<!--
4+
Microsoft ResX Schema
5+
6+
Version 2.0
7+
8+
The primary goals of this format is to allow a simple XML format
9+
that is mostly human readable. The generation and parsing of the
10+
various data types are done through the TypeConverter classes
11+
associated with the data types.
12+
13+
Example:
14+
15+
... ado.net/XML headers & schema ...
16+
<resheader name="resmimetype">text/microsoft-resx</resheader>
17+
<resheader name="version">2.0</resheader>
18+
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
19+
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
20+
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
21+
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
22+
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
23+
<value>[base64 mime encoded serialized .NET Framework object]</value>
24+
</data>
25+
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
26+
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
27+
<comment>This is a comment</comment>
28+
</data>
29+
30+
There are any number of "resheader" rows that contain simple
31+
name/value pairs.
32+
33+
Each data row contains a name, and value. The row also contains a
34+
type or mimetype. Type corresponds to a .NET class that support
35+
text/value conversion through the TypeConverter architecture.
36+
Classes that don't support this are serialized and stored with the
37+
mimetype set.
38+
39+
The mimetype is used for serialized objects, and tells the
40+
ResXResourceReader how to depersist the object. This is currently not
41+
extensible. For a given mimetype the value must be set accordingly:
42+
43+
Note - application/x-microsoft.net.object.binary.base64 is the format
44+
that the ResXResourceWriter will generate, however the reader can
45+
read any of the formats listed below.
46+
47+
mimetype: application/x-microsoft.net.object.binary.base64
48+
value : The object must be serialized with
49+
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
50+
: and then encoded with base64 encoding.
51+
52+
mimetype: application/x-microsoft.net.object.soap.base64
53+
value : The object must be serialized with
54+
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
55+
: and then encoded with base64 encoding.
56+
57+
mimetype: application/x-microsoft.net.object.bytearray.base64
58+
value : The object must be serialized into a byte array
59+
: using a System.ComponentModel.TypeConverter
60+
: and then encoded with base64 encoding.
61+
-->
62+
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
63+
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
64+
<xsd:element name="root" msdata:IsDataSet="true">
65+
<xsd:complexType>
66+
<xsd:choice maxOccurs="unbounded">
67+
<xsd:element name="metadata">
68+
<xsd:complexType>
69+
<xsd:sequence>
70+
<xsd:element name="value" type="xsd:string" minOccurs="0" />
71+
</xsd:sequence>
72+
<xsd:attribute name="name" use="required" type="xsd:string" />
73+
<xsd:attribute name="type" type="xsd:string" />
74+
<xsd:attribute name="mimetype" type="xsd:string" />
75+
<xsd:attribute ref="xml:space" />
76+
</xsd:complexType>
77+
</xsd:element>
78+
<xsd:element name="assembly">
79+
<xsd:complexType>
80+
<xsd:attribute name="alias" type="xsd:string" />
81+
<xsd:attribute name="name" type="xsd:string" />
82+
</xsd:complexType>
83+
</xsd:element>
84+
<xsd:element name="data">
85+
<xsd:complexType>
86+
<xsd:sequence>
87+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
88+
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
89+
</xsd:sequence>
90+
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
91+
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
92+
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
93+
<xsd:attribute ref="xml:space" />
94+
</xsd:complexType>
95+
</xsd:element>
96+
<xsd:element name="resheader">
97+
<xsd:complexType>
98+
<xsd:sequence>
99+
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
100+
</xsd:sequence>
101+
<xsd:attribute name="name" type="xsd:string" use="required" />
102+
</xsd:complexType>
103+
</xsd:element>
104+
</xsd:choice>
105+
</xsd:complexType>
106+
</xsd:element>
107+
</xsd:schema>
108+
<resheader name="resmimetype">
109+
<value>text/microsoft-resx</value>
110+
</resheader>
111+
<resheader name="version">
112+
<value>2.0</value>
113+
</resheader>
114+
<resheader name="reader">
115+
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
116+
</resheader>
117+
<resheader name="writer">
118+
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
119+
</resheader>
120+
<data name="CategoryAppearance" xml:space="preserve">
121+
<value>Appearance</value>
122+
</data>
123+
<data name="CategoryBrush" xml:space="preserve">
124+
<value>Brush</value>
125+
</data>
126+
<data name="CategoryCommon" xml:space="preserve">
127+
<value>Common</value>
128+
</data>
129+
</root>

0 commit comments

Comments
 (0)