Skip to content

Commit 9fad966

Browse files
Merge branch 'main' into color-picker-switch-to-winui
2 parents d19a282 + 6827aab commit 9fad966

File tree

1,608 files changed

+5224
-4555
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,608 files changed

+5224
-4555
lines changed

.editorconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ root = true
66

77
#### Core EditorConfig Options ####
88

9+
# Encoding
10+
charset = utf-8
11+
912
# Indentation and spacing
1013
indent_size = 4
1114
indent_style = space
@@ -103,8 +106,8 @@ csharp_new_line_between_query_expression_clauses = true
103106
csharp_indent_block_contents = true
104107
csharp_indent_braces = false
105108
csharp_indent_case_contents = true
106-
csharp_indent_case_contents_when_block = true
107-
csharp_indent_labels = one_less_than_current
109+
csharp_indent_case_contents_when_block = false
110+
csharp_indent_labels = no_change
108111
csharp_indent_switch_labels = true
109112

110113
# Space preferences

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ If applicable, add screenshots to help explain your problem.
3838
## Environment
3939
<!-- Check one or more of the following options with "x" -->
4040
```
41-
NuGet Package(s):
41+
NuGet Package(s):
4242
43-
Package Version(s):
43+
Package Version(s):
4444
4545
Windows 10 Build Number:
4646
- [ ] Fall Creators Update (16299)
@@ -64,9 +64,9 @@ Device form factor:
6464
- [ ] Surface Hub
6565
- [ ] IoT
6666
67-
Visual Studio
67+
Visual Studio
6868
- [ ] 2017 (version: )
69-
- [ ] 2019 (version: )
69+
- [ ] 2019 (version: )
7070
- [ ] 2019 Preview (version: )
7171
7272
```

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ IF NOT CERTAIN ABOUT THE FEATURE AND REQUIRE MORE CLARITY THEN PLEASE POST ON "I
1313

1414
## Describe the problem this feature would solve
1515
<!-- Please describe or link to any existing issues or discussions.
16-
A clear and concise description of what the problem is, starting with the user story.
16+
A clear and concise description of what the problem is, starting with the user story.
1717
Provide examples of the restrictions in the current environment that hinders the work your users or you want to perform. What are the ways this new feature will help transform and deliver those results?
1818
For example, I am currently using the InfiniteCanvas control which lacks the TabbedCommandBar control feature. I am looking to improve user experience therefore i would like to use that in my project to provide ease of accessibility and a user-friendly interface. This new feature will provide quick access to the toolbar, enhance space utilization, etc [...] -->
1919

.github/ISSUE_TEMPLATE/win32_controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Win32 Controls
33
about: I have an issue with a Toolkit WPF or WinForms control
44
title: "[Win32]"
5-
labels:
5+
labels:
66
assignees: ''
77

88
---

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
<!-- 🚨 Please Do Not skip any instructions and information mentioned below as they are all required and essential to evaluate and test the PR. By fulfilling all the required information you will be able to reduce the volume of questions and most likely help merge the PR faster 🚨 -->
22

3-
<!-- 📝 It is preferred if you keep the "☑️ Allow edits by maintainers" checked in the Pull Request Template as it increases collaboration with the Toolkit maintainers by permitting commits to your PR branch (only) created from your fork. This can let us quickly make fixes for minor typos or forgotten StyleCop issues during review without needing to wait on you doing extra work. Let us help you help us! 🎉 -->
3+
<!-- 👉 It is imperative to resolve ONE ISSUE PER PR and avoid making multiple changes unless the changes interrelate with each other -->
4+
5+
<!-- 📝 Please always keep the "☑️ Allow edits by maintainers" button checked in the Pull Request Template as it increases collaboration with the Toolkit maintainers by permitting commits to your PR branch (only) created from your fork. This can let us quickly make fixes for minor typos or forgotten StyleCop issues during review without needing to wait on you doing extra work. Let us help you help us! 🎉 -->
46

57

68
## Fixes #
7-
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->
9+
<!-- Add the relevant issue number after the "#" mentioned above (for ex: "## Fixes #1234") which will automatically close the issue once the PR is merged. -->
810

911
<!-- Add a brief overview here of the feature/bug & fix. -->
1012

1113
## PR Type
1214
What kind of change does this PR introduce?
13-
<!-- Please uncomment one or more that apply to this PR. -->
15+
<!-- Please uncomment one or more options below that apply to this PR. -->
1416

1517
<!-- - Bugfix -->
1618
<!-- - Feature -->
@@ -43,7 +45,7 @@ Please check if your PR fulfills the following requirements:
4345
- [ ] Header has been added to all new source files (run *build/UpdateHeaders.bat*)
4446
- [ ] Contains **NO** breaking changes
4547

46-
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below.
48+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below.
4749
Please note that breaking changes are likely to be rejected within minor release cycles or held until major versions. -->
4850

4951

.runsettings

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
<?xml version="1.0" encoding="utf-8"?>
21
<RunSettings>
32
<MSTest>
43
<MaxCpuCount>0</MaxCpuCount>

contributing.md renamed to Contributing.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@ In the next few steps, you will be able to see a glimpse of ways you can contrib
77
:rotating_light: **It is highly recommended to visit [Windows Community Toolkit Wiki](https://aka.ms/wct/wiki) where you can find complete and detail-oriented content of this page** :rotating_light:
88

99
## <a name="question"></a> Questions :grey_question:
10-
Due to the high volume of incoming issues please keep our GitHub issues for bug reports and feature requests. For general questions, there is a higher chance of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/windows-community-toolkit) where questions should be tagged with the tag windows-community-toolkit.
10+
Due to the high volume of incoming issues please keep our GitHub issues for bug reports and feature requests. For general questions, there is a higher chance of getting your question answered on [StackOverflow](https://stackoverflow.com/questions/tagged/windows-community-toolkit) where questions should be tagged with the tag windows-community-toolkit.
1111

1212
For missing documentation related question, please file an issue at [Microsoft Docs](https://github.com/MicrosoftDocs/WindowsCommunityToolkitDocs/issues/new).
1313

1414
## <a name="bug"></a> Fix a Bug :bug:
15-
If you find any bug, you can help the community by [submitting an issue](https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=bug+%3Abug%3A&template=bug_report.md&title=). Once the issue is filed, feel free to start working on the PR and submit a PR.
15+
If you find any bug, you can help the community by [submitting an issue](https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=bug+%3Abug%3A&template=bug_report.md&title=). Once the issue is filed, feel free to start working on the PR and submit a PR.
1616

17-
## <a name="issue"></a>Good First Issue :ok_hand:
17+
## <a name="issue"></a>Good First Issue :ok_hand:
1818
If this is your first time contributing to the Windows Community Toolkit and do not have advanced level programming experience, we have got you covered :boom: WCT has a list of [good first issue](https://github.com/windows-toolkit/WindowsCommunityToolkit/labels/good%20first%20issue%20%3Aok_hand%3A) that can be a great entryway to find and fix any issues that best fit your expertise or technical background.
1919

20-
## <a name="help"></a>Help Wanted :raising_hand:
20+
## <a name="help"></a>Help Wanted :raising_hand:
2121
WCT has a list of issues that are labeled as [help wanted](https://github.com/windows-toolkit/WindowsCommunityToolkit/labels/help%20wanted%20%3Araising_hand%3A). The level of complexity in the list can vary but if you have an advanced level of programming experience, feel free to jump in to solve these issues.
2222

2323
## <a name="feature"></a>Add New Feature :mailbox_with_mail:
24-
* To contribute a new feature, fill out the [Feature Request Template](https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=feature+request+%3Amailbox_with_mail%3A&template=feature_request.md&title=%5BFeature%5D) and provide detailed information to express the proposal.
24+
* To contribute a new feature, fill out the [Feature Request Template](https://github.com/windows-toolkit/WindowsCommunityToolkit/issues/new?assignees=&labels=feature+request+%3Amailbox_with_mail%3A&template=feature_request.md&title=%5BFeature%5D) and provide detailed information to express the proposal.
2525
* Once the Feature Request is submitted, it will be open for discussion.
26-
* If it gets approved by the team, proceed to submit a PR of the proposed Feature.
26+
* If it gets approved by the team, proceed to submit a PR of the proposed Feature.
2727
* If the PR contains an error-free code and the reviewer signs off, the PR will be merged.
2828

2929
## <a name="docs"></a> Add or Improve Documentation :page_with_curl:

Directory.Build.props

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<Authors>Microsoft.Toolkit</Authors>
55
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
66
<NoPackageAnalysis>true</NoPackageAnalysis>
7-
<PackageIconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/master/build/nuget.png</PackageIconUrl>
7+
<PackageIconUrl>https://raw.githubusercontent.com/windows-toolkit/WindowsCommunityToolkit/main/build/nuget.png</PackageIconUrl>
88
<PackageIcon>images\nuget.png</PackageIcon>
99
<PackageProjectUrl>https://github.com/windows-toolkit/WindowsCommunityToolkit</PackageProjectUrl>
10-
<PackageLicenseExpression>MIT</PackageLicenseExpression>
10+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1111
<PackageReleaseNotes>https://github.com/windows-toolkit/WindowsCommunityToolkit/releases</PackageReleaseNotes>
1212
<Copyright>(c) .NET Foundation and Contributors. All rights reserved.</Copyright>
1313
<DefaultLanguage>en-US</DefaultLanguage>
@@ -31,6 +31,11 @@
3131
<GenerateDocumentationFile>true</GenerateDocumentationFile>
3232
</PropertyGroup>
3333
</When>
34+
<Otherwise>
35+
<PropertyGroup>
36+
<IsPackable>false</IsPackable>
37+
</PropertyGroup>
38+
</Otherwise>
3439
</Choose>
3540

3641
<Choose>
@@ -45,33 +50,33 @@
4550
<When Condition="'$(Configuration)' == 'Debug' and '$(IsDesignProject)' != 'true'">
4651
<!-- Debug builds have this turned on by default, but it breaks our Xaml Islands Scenarios -->
4752
<PropertyGroup>
48-
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
4953
<EnableXBindDiagnostics>false</EnableXBindDiagnostics>
54+
<EnableTypeInfoReflection>false</EnableTypeInfoReflection>
5055
</PropertyGroup>
5156
</When>
5257
</Choose>
5358

5459
<Choose>
5560
<When Condition="'$(SourceLinkEnabled)' != 'false' and '$(IsSampleProject)' != 'true'">
5661
<PropertyGroup>
57-
<!-- Optional: Declare that the Repository URL can be published to NuSpec -->
62+
<!-- Declare that the Repository URL can be published to NuSpec -->
5863
<PublishRepositoryUrl>true</PublishRepositoryUrl>
59-
<!-- Optional: Embed source files that are not tracked by the source control manager to the PDB -->
64+
<!-- Embed source files that are not tracked by the source control manager to the PDB -->
6065
<EmbedUntrackedSources>true</EmbedUntrackedSources>
61-
<!-- Optional: Include PDB in the built .nupkg -->
66+
<!-- Include PDB in the built .nupkg -->
6267
<AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder>
6368
</PropertyGroup>
6469
<ItemGroup>
65-
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All"/>
66-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All"/>
70+
<PackageReference Include="Microsoft.SourceLink.AzureRepos.Git" Version="1.0.0" PrivateAssets="All" />
71+
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
6772
</ItemGroup>
6873
</When>
6974
</Choose>
7075

7176
<Choose>
7277
<When Condition="'$(IsDesignProject)' != 'true'">
7378
<ItemGroup>
74-
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive"/>
79+
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118" PrivateAssets="all" IncludeAssets="runtime; build; native; contentfiles; analyzers; buildtransitive" />
7580
</ItemGroup>
7681
</When>
7782
</Choose>
@@ -103,10 +108,10 @@
103108
<AdditionalFiles Include="$(MSBuildThisFileDirectory)stylecop.json">
104109
<Link>stylecop.json</Link>
105110
</AdditionalFiles>
106-
<None Include="$(MSBuildThisFileDirectory)license.md" Pack="true" PackagePath="\"/>
107-
<None Include="$(MSBuildThisFileDirectory)build\nuget.png" Pack="true" PackagePath="images\"/>
111+
<None Include="$(MSBuildThisFileDirectory)License.md" Pack="true" PackagePath="\" />
112+
<None Include="$(MSBuildThisFileDirectory)build\nuget.png" Pack="true" PackagePath="images\" />
108113
</ItemGroup>
109114

110-
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.VisualStudio.Design.props" Condition="'$(IsDesignProject)' == 'true'"/>
115+
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.VisualStudio.Design.props" Condition="'$(IsDesignProject)' == 'true'" />
111116

112-
</Project>
117+
</Project>

Directory.Build.targets

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,21 @@
55
</PropertyGroup>
66

77
<Choose>
8-
<!--We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects-->
8+
<!-- We'll include signing the Notifications library since we need the DLL signature to match for interop from class libraries to main projects -->
99
<When Condition="(!$(TargetFramework.Contains(`uap10.0`)) and '$(TargetFramework)' != 'native' and '$(IsSampleProject)' != 'true') or $(MSBuildProjectName) == 'Microsoft.Toolkit.Uwp.Notifications'">
1010
<PropertyGroup>
1111
<SignAssembly>true</SignAssembly>
1212
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)toolkit.snk</AssemblyOriginatorKeyFile>
1313
</PropertyGroup>
1414
</When>
1515
</Choose>
16-
16+
1717
<!--Exclude Notifications project from this since it sets different min versions than what we want for notifications-->
18-
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.Uwp.Build.targets" Condition="'$(UseUWP)' == 'true' and $(MSBuildProjectName) != 'Microsoft.Toolkit.Uwp.Notifications'"/>
18+
<Import Project="$(MSBuildThisFileDirectory)build\Windows.Toolkit.Uwp.Build.targets" Condition="'$(UseUWP)' == 'true' and $(MSBuildProjectName) != 'Microsoft.Toolkit.Uwp.Notifications'" />
1919

2020
<Target Name="AddCommitHashToAssemblyAttributes" BeforeTargets="GetAssemblyAttributes">
2121
<ItemGroup>
22-
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition=" '$(SourceRevisionId)' != '' ">
22+
<AssemblyAttribute Include="System.Reflection.AssemblyMetadataAttribute" Condition="'$(SourceRevisionId)' != ''">
2323
<_Parameter1>CommitHash</_Parameter1>
2424
<_Parameter2>$(SourceRevisionId)</_Parameter2>
2525
</AssemblyAttribute>

GazeInputTest/App.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<Application
1+
<Application
22
x:Class="GazeInputTest.App"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
55
xmlns:local="using:GazeInputTest"
66
RequestedTheme="Light">
77

8-
</Application>
8+
</Application>

0 commit comments

Comments
 (0)