-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Split out Controls.Primitives package. #3660
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
6956c73
e885c10
2fdcbe6
7431e17
1e34abf
ac71f64
b6bc173
04869f4
b6ca5af
06a9822
8fd51a1
96e1aba
3fb9053
4f83e08
0043ecd
3cc5a64
3ffa9b5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<Project Sdk="MSBuild.Sdk.Extras"> | ||
|
||
<PropertyGroup> | ||
<TargetFrameworks>uap10.0.17763</TargetFrameworks> | ||
<Title>Windows Community Toolkit Controls</Title> | ||
<Description> | ||
This library provides XAML templated controls. It is part of the Windows Community Toolkit. | ||
Rosuavio marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
Controls: | ||
- AdaptiveGridView: Presents items in an evenly-spaced set of columns to fill the total available space. | ||
- DockPanel: Define areas where you can arrange child elements either horizontally or vertically, relative to each other. | ||
- StaggeredPanel: Layout of items in a column approach where an item will be added to whichever column has used the least amount of space. | ||
- UniformGrid: Presents items in an evenly-spaced set of rows or columns to fill the total available display space. | ||
michael-hawker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- WrapPanel: Positions child elements in sequential position from left to right and breaks content to the next line. | ||
</Description> | ||
<PackageTags>UWP Toolkit Windows Controls XAML WrapPanel Adaptive DockPanel StaggeredPanel Staggered UniformGrid Uniform Grid</PackageTags> | ||
<!-- ARM64 builds for managed apps use .NET Native. We can't use the Reflection Provider for that. --> | ||
<EnableTypeInfoReflection Condition="'$(Configuration)' == 'Debug'">false</EnableTypeInfoReflection> | ||
<LangVersion>8.0</LangVersion> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> | ||
michael-hawker marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Microsoft.Toolkit.Uwp\Microsoft.Toolkit.Uwp.csproj" /> | ||
<ProjectReference Include="..\Microsoft.Toolkit.Uwp.UI\Microsoft.Toolkit.Uwp.UI.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<None Include="VisualStudioToolsManifest.xml" Pack="true" PackagePath="tools" /> | ||
<None Include="$(OutDir)\Design\$(MSBuildProjectName).Design.dll;$(OutDir)\Design\$(MSBuildProjectName).Design.pdb" Pack="true" PackagePath="lib\$(TargetFramework)\Design" /> | ||
</ItemGroup> | ||
|
||
<Import Project="$(MSBuildSDKExtrasTargets)" Condition="Exists('$(MSBuildSDKExtrasTargets)')" /> | ||
|
||
<!-- https://weblogs.asp.net/rweigelt/disable-warnings-in-generated-c-files-of-uwp-app --> | ||
<Target Name="PragmaWarningDisablePrefixer" AfterTargets="MarkupCompilePass2"> | ||
<ItemGroup> | ||
<GeneratedCSFiles Include="**\*.g.cs;**\*.g.i.cs" /> | ||
</ItemGroup> | ||
<Message Text="CSFiles: @(GeneratedCSFiles->'"%(Identity)"')" /> | ||
<Exec Command="for %%f in (@(GeneratedCSFiles->'"%(Identity)"')) do echo #pragma warning disable > %%f.temp && type %%f >> %%f.temp && move /y %%f.temp %%f > NUL" /> | ||
</Target> | ||
</Project> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=adaptivegridview/@EntryIndexedValue">True</s:Boolean> | ||
</wpf:ResourceDictionary> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Resources; | ||
using System.Runtime.CompilerServices; | ||
|
||
// 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: InternalsVisibleTo("UnitTests.UWP")] | ||
[assembly: InternalsVisibleTo("UnitTests.XamlIslands.UWPApp")] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know much about how XamlIslands works, do you think we need this for the primitives, @michael-hawker? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is just exposing it to the XamlIslands tests, so we probably need to tweak those and the Unit Tests as well if they touch these controls? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems like the xmal islands test worked just fine without that line. |
||
[assembly: NeutralResourcesLanguage("en-US")] |
Uh oh!
There was an error while loading. Please reload this page.