Граф коммитов

13501 Коммитов

Автор SHA1 Сообщение Дата
Alexandre Zollinger Chohfi 5c5c487205 Merge branch 'main' into winui
# Conflicts:
#	CommunityToolkit.Mvvm.SourceGenerators/ComponentModel/ObservableValidatorValidateAllPropertiesGenerator.cs
#	CommunityToolkit.WinUI.UI.Controls.Primitives/ConstrainedBox/ConstrainedBox.Properties.cs
#	CommunityToolkit.WinUI.UI.Controls.Primitives/ConstrainedBox/ConstrainedBox.cs
#	Microsoft.Toolkit.Uwp.SampleApp/Microsoft.Toolkit.Uwp.SampleApp.csproj
#	UITests/UITests.Tests.Shared/Controls/GridSplitterTest.cs
#	UITests/UITests.Tests.Shared/Controls/RichSuggestBoxTest.cs
#	UITests/UITests.Tests.Shared/UITestBase.cs
#	UITests/UITests.Tests.TAEF/UITests.App.dependencies.Debug.txt
#	UITests/UITests.Tests.TAEF/UITests.App.dependencies.Release.txt
#	Windows Community Toolkit.sln
#	build/Windows.Toolkit.WinUI.Controls.targets
2021-09-17 12:06:08 -07:00
Alexandre Zollinger Chohfi 323e006837 Fix for DefaultStyleKey not working always when assembly name differs from namespace. 2021-09-17 11:12:44 -07:00
Michael Hawker MSFT (XAML Llama) 7816189147
Merge pull request #4256 from michael-hawker/winui27-update
Update to WinUI 2.7
2021-09-16 17:39:28 -07:00
Michael Hawker MSFT (XAML Llama) 6ed77211e0
Merge pull request #4249 from XAML-Knight/dev/InAppNotifDismiss225
Upgraded Dismiss button to be legible at 225% text display setting
2021-09-16 15:05:06 -07:00
Michael Hawker MSFT (XAML Llama) e146ab5584
Merge pull request #4255 from RosarioPulella/bugfix/listdetailsview-unfocus-content
ListDetailsView unfocus content on SelectedIndex changed.
2021-09-16 15:04:26 -07:00
Darren Batchelor f0e1617dd3 Consistent 1 pixel Y transform 2021-09-16 14:23:58 -07:00
Rosario Pulella 394fbdb2bb
ListDetailsView: Update the focus based on the ViewSate on SelectedItemChanged 2021-09-16 16:57:03 -04:00
Rosario Pulella 9c410d1bcb
ListDetailsView: fix MainList refrence when focusing the list 2021-09-16 16:57:03 -04:00
michael-hawker 377a884466
Rewrite test to be deterministic 2021-09-16 16:56:51 -04:00
Michael Hawker MSFT (XAML Llama) f0209a3535
Merge pull request #4125 from Nirmal4G/hotfix/warnings
Fix most build warnings from the projects
2021-09-16 12:57:46 -07:00
michael-hawker a4c5d1cbf5 Update UI Test Dependencies 2021-09-16 11:47:32 -07:00
Rosario Pulella 1888209505
Merge pull request #4221 from Sergio0694/bugfix/validate-all-generated-props
Fixed ValidateAllProperties generation for generated properties
2021-09-16 14:34:38 -04:00
Rosario Pulella 0dfba3be86
Merge pull request #4253 from Sergio0694/bugfix/aspectratio-localized-parsing
Fixed culture sensitivity when parsing AspectRatio components
2021-09-16 14:19:46 -04:00
msftbot[bot] 0d73af7dc6
Fixed generated properties within regions (#4227)
<!-- 🚨 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 🚨 -->

<!-- 👉 It is imperative to resolve ONE ISSUE PER PR and avoid making multiple changes unless the changes interrelate with each other -->

<!-- 📝 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! 🎉 -->

## Fixes #4225

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

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

## PR Type

What kind of change does this PR introduce?

<!-- Please uncomment one or more options below that apply to this PR. -->

- Bugfix
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->

## What is the current behavior?
Compilation fails If the Microsoft MVVM Toolkit source generator attribute `[ObservableProperty]` is in a `#region` block.
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

## What is the new behavior?
The generated code is now correct when regions are used.
<!-- Describe how was this issue resolved or changed? -->

## PR Checklist

Please check if your PR fulfills the following requirements: <!-- and remove the ones that are not applicable to the current PR -->

- [X] Tested code with current [supported SDKs](../#supported)
- [X] New component
  - [X] Pull Request has been submitted to the documentation repository [instructions](../blob/main/Contributing.md#docs). Link: <!-- docs PR link -->
  - [X] Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  - [X] If control, added to Visual Studio Design project
- [X] Sample in sample app has been added / updated (for bug fixes / features)
  - [X] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
- [X] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run _build/UpdateHeaders.bat_)
- [X] Contains **NO** breaking changes
2021-09-16 18:17:45 +00:00
Alexandre Zollinger Chohfi 02a4d2bc3e Fix merge conflict 2021-09-16 11:14:48 -07:00
Rosario Pulella d21f12d584
ListDetialsView: Unit test for item details losing focus 2021-09-16 13:51:18 -04:00
michael-hawker 336bd38257 Update to WinUI 2.7 2021-09-16 10:47:34 -07:00
msftbot[bot] f18604f5dc
Various 7.1 Clean-up Fixes (#4251)
## Fixes #4210 and Fixes #4158

Cleans up sample for #4248 (though underlying issue remains to be figured out later).

Fixes a sample and cleans-up a few items we missed in our nuget packages. Just need to validate output from CI, but should be fairly straight-forward.

## PR Type

What kind of change does this PR introduce?

<!-- Please uncomment one or more options below that apply to this PR. -->

<!-- - Bugfix -->
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
- Documentation content changes
- Sample app changes
<!-- - Other... Please describe: -->

## What is the current behavior?

TTB Sample was binding to the internal collection instead of showing binding to a developer provided collection.

Some new features were missing from the NuGet package info.

## What is the new behavior?

Fixed! 🎉

## PR Checklist

Please check if your PR fulfills the following requirements: <!-- and remove the ones that are not applicable to the current PR -->

- [ ] Tested code with current [supported SDKs](../#supported)
- [ ] New component
  - [ ] Pull Request has been submitted to the documentation repository [instructions](../blob/main/Contributing.md#docs). Link: <!-- docs PR link -->
  - [ ] Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  - [ ] If control, added to Visual Studio Design project
- [ ] Sample in sample app has been added / updated (for bug fixes / features)
  - [ ] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
- [ ] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [ ] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [ ] Header has been added to all new source files (run _build/UpdateHeaders.bat_)
- [ ] Contains **NO** breaking changes

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

## Other information

<!-- Please add any other information that might be helpful to reviewers. -->
2021-09-16 17:19:56 +00:00
Alexandre Zollinger Chohfi 1f6630e48a Merge branch 'main' into winui
# Conflicts:
#	CommunityToolkit.WinUI.UI.Animations/Expressions/ExpressionNodes/ScalarNode.cs
#	CommunityToolkit.WinUI.UI.Animations/Extensions/System/FloatExtensions.cs
2021-09-16 09:16:38 -07:00
Sergio Pedri 7642602ed6 Fixed culture sensitivity when parsing AspectRatio components 2021-09-16 11:15:27 +02:00
michael-hawker 2ac2c51594 Update Package Descriptions - Fixes #4210 2021-09-15 14:56:44 -07:00
michael-hawker ece736fe0c Add extra prop/target files to solution items folder 2021-09-15 14:56:43 -07:00
michael-hawker 8b756dddc8 Add ThirdPartyNotice file to packages - Fixes #4158 2021-09-15 14:56:43 -07:00
michael-hawker f992af412c Apply fix to sample to show proper way to use TokenizingTextBox Binding to ItemsSource
Avoids bug #4248
2021-09-15 14:56:43 -07:00
Darren Batchelor a094881d9b Removed excess white space before transform element 2021-09-15 14:36:51 -07:00
Darren Batchelor 3237e699ac Upgraded Dismiss button to behave at 225% setting 2021-09-15 13:51:31 -07:00
msftbot[bot] 6fd3327228
Fixed [AlsoNotifyChangeFor] attribute definition (#4242)
## PR Type

What kind of change does this PR introduce?

<!-- Please uncomment one or more options below that apply to this PR. -->

- Bugfix
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->

## What is the current behavior?
The `[AlsoNotifyChangeFor]` attribute can't be used multiple types, and a constructor is missing `params`.
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

## What is the new behavior?
Fixed the issues mentioned above.
<!-- Describe how was this issue resolved or changed? -->

## PR Checklist

Please check if your PR fulfills the following requirements: <!-- and remove the ones that are not applicable to the current PR -->

- [X] Tested code with current [supported SDKs](../#supported)
- [X] New component
  - [X] Pull Request has been submitted to the documentation repository [instructions](../blob/main/Contributing.md#docs). Link: <!-- docs PR link -->
  - [X] Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  - [X] If control, added to Visual Studio Design project
- [X] Sample in sample app has been added / updated (for bug fixes / features)
  - [X] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
- [X] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run _build/UpdateHeaders.bat_)
- [X] Contains **NO** breaking changes
2021-09-15 20:21:03 +00:00
msftbot[bot] 9d9800d38a
Added DispatcherQueue dispatching for high contrast theme change (#4243)
<!-- 🚨 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 🚨 -->

<!-- 👉 It is imperative to resolve ONE ISSUE PER PR and avoid making multiple changes unless the changes interrelate with each other -->

<!-- 📝 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! 🎉 -->

## Fixes #3253

Applying changes discussed in https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/3253#issuecomment-740261646.

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

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

## PR Type

What kind of change does this PR introduce?

<!-- Please uncomment one or more options below that apply to this PR. -->

- Bugfix
<!-- - Feature -->
<!-- - Code style update (formatting) -->
<!-- - Refactoring (no functional changes, no api changes) -->
<!-- - Build or CI related changes -->
<!-- - Documentation content changes -->
<!-- - Sample app changes -->
<!-- - Other... Please describe: -->

## What is the current behavior?
Changes to the high contrast theme are propagated on the original synchronization context.
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->

## What is the new behavior?
The event handler now dispatches on the current dispatcher queue.
<!-- Describe how was this issue resolved or changed? -->

## PR Checklist

Please check if your PR fulfills the following requirements: <!-- and remove the ones that are not applicable to the current PR -->

- [X] Tested code with current [supported SDKs](../#supported)
- [X] New component
  - [X] Pull Request has been submitted to the documentation repository [instructions](../blob/main/Contributing.md#docs). Link: <!-- docs PR link -->
  - [X] Added description of major feature to project description for NuGet package (4000 total character limit, so don't push entire description over that)
  - [X] If control, added to Visual Studio Design project
- [X] Sample in sample app has been added / updated (for bug fixes / features)
  - [X] Icon has been created (if new sample) following the [Thumbnail Style Guide and templates](https://github.com/CommunityToolkit/WindowsCommunityToolkit-design-assets)
- [X] New major technical changes in the toolkit have or will be added to the [Wiki](https://github.com/CommunityToolkit/WindowsCommunityToolkit/wiki) e.g. build changes, source generators, testing infrastructure, sample creation changes, etc...
- [X] Tests for the changes have been added (for bug fixes / features) (if applicable)
- [X] Header has been added to all new source files (run _build/UpdateHeaders.bat_)
- [X] Contains **NO** breaking changes
2021-09-15 19:57:00 +00:00
Sergio Pedri aaa9036e89 Added DispatcherQueue dispatching for high contrast theme change 2021-09-14 22:22:06 +02:00
Michael Hawker MSFT (XAML Llama) 03c3f3c262
Merge pull request #4031 from stephtr/rangeselector-continuous
RangeSelector: Moving past second handle
2021-09-14 10:51:40 -07:00
Michael Hawker MSFT (XAML Llama) 07687af069
Merge pull request #4183 from arcadiogarcia/user/arcadiog/clearReferenceInfo
Clear ReferenceNode ParamNames before serializing each expression string to avoid collisions
2021-09-14 09:13:00 -07:00
Sergio Pedri 9f887e65f3 Fixed [AlsoNotifyChangeFor] attribute definition 2021-09-12 20:26:40 +02:00
Nirmal Guru 19c62a3589
Fix CS8618 warnings
Code CS1591: Non-nullable field must contain a non-null value when exiting constructor.
2021-09-10 07:10:04 +05:30
Nirmal Guru f697af0334
Update UnitTests' EditorConfig
Add comments describing the nature of the warning.
2021-09-10 07:09:39 +05:30
Nirmal Guru 445b6cda1e
Fix SA1208, SA1210, SA1505 warnings
Code SA1208: Using directive should appear before other directives.
Code SA1210: Using directives should be ordered alphabetically by the namespaces.
Code SA1505: An opening brace should not be followed by a blank line.
2021-09-10 07:09:31 +05:30
Nirmal Guru 972480972a
Fix ILT0010 warnings
Code ILT0010: Could not find an assembly referenced by other assembly

The following warnings surfaced due to the missing assembly.
Since, the assembly is not found, any referenced code got hit with these warnings

Code ILT0005: The type from an assembly was not included in compilation, but was referenced in a method.
Code ILT0003: The method will always throw an exception due to the missing method in an assembly.
2021-09-10 07:09:30 +05:30
Nirmal Guru b695a6d2a3
Fix CS1591 warnings
Code CS1591: Missing XML comment for publicly visible type or member.
2021-09-10 07:09:29 +05:30
Arcadio Garcia Salvadores fa6a3ed9f4 ClearReferenceInfo 2021-09-09 15:41:28 -07:00
Michael Hawker MSFT (XAML Llama) 5dfc5754a4
Merge pull request #4189 from arcadiogarcia/user/arcadiog/ToCompositionString
Prevent floats from being represented in scientific notation in expression animation strings
2021-09-09 11:27:25 -07:00
Sergio Pedri a3cce541df Improved unit tests for generated validation methods 2021-09-09 20:12:04 +02:00
Sergio Pedri d8af528e7e Fixed ValidateAllProperties generation for generated properties 2021-09-09 20:12:04 +02:00
Michael Hawker MSFT (XAML Llama) b6ec0bcc26
Merge pull request #4230 from michael-hawker/shadow-events
Fix #4214 - Update AttachedDropShadow visual on layout/visibility
2021-09-09 11:05:53 -07:00
Alexandre Zollinger Chohfi 4c8f61e87b Merge branch 'main' into winui
# Conflicts:
#	CommunityToolkit.WinUI.Notifications/ReadMe.md
#	CommunityToolkit.WinUI.Notifications/readme.md
#	CommunityToolkit.WinUI.UI.Controls.Core.Design/Common/MetadataRegistration.cs
#	CommunityToolkit.WinUI.UI.Controls.Core.Design/CommunityToolkit.WinUI.UI.Controls.Core.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.Core.Design/MetadataRegistration.cs
#	CommunityToolkit.WinUI.UI.Controls.Core.Design/Properties/AssemblyInfo.cs
#	CommunityToolkit.WinUI.UI.Controls.DataGrid.Design/CommunityToolkit.WinUI.UI.Controls.DataGrid.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.DataGrid.Design/Properties/AssemblyInfo.cs
#	CommunityToolkit.WinUI.UI.Controls.Input.Design/CommunityToolkit.WinUI.UI.Controls.Input.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.Input.Design/Properties/AssemblyInfo.cs
#	CommunityToolkit.WinUI.UI.Controls.Layout.Design/CommunityToolkit.WinUI.UI.Controls.Layout.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.Layout.Design/Properties/AssemblyInfo.cs
#	CommunityToolkit.WinUI.UI.Controls.Markdown.Design/CommunityToolkit.WinUI.UI.Controls.Markdown.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.Markdown.Design/Properties/AssemblyInfo.cs
#	CommunityToolkit.WinUI.UI.Controls.Media/CommunityToolkit.WinUI.UI.Controls.Media.csproj
#	CommunityToolkit.WinUI.UI.Controls.Primitives.Design/CommunityToolkit.WinUI.UI.Controls.Primitives.DesignTools.csproj
#	CommunityToolkit.WinUI.UI.Controls.Primitives.Design/Properties/AssemblyInfo.cs
#	Microsoft.Toolkit.Mvvm.SourceGenerators/AnalyzerReleases.Unshipped.md
#	Microsoft.Toolkit.Uwp.Notifications/readme.md
#	Microsoft.Toolkit.Uwp.UI.Controls.Core.Design/MetadataRegistration.cs
#	Windows Community Toolkit.sln
2021-09-09 09:50:26 -07:00
Michael Hawker MSFT (XAML Llama) 8d7f8c24cb
Merge pull request #4231 from Sergio0694/feature/csharp-version-diagnostic
Add C# language version diagnostic
2021-09-08 11:31:46 -07:00
Michael Hawker MSFT (XAML Llama) b276329ef1
Merge pull request #3794 from Nirmal4G/feature/design-tools
Convert `DesignTools` projects to Sdk-style
2021-09-08 11:30:56 -07:00
Sergio Pedri 15a26e481f Added unit tests for new diagnostic 2021-09-08 18:02:11 +02:00
Sergio Pedri 21e08252ef Added diagnostic for unsupported C# language version 2021-09-08 15:58:57 +02:00
michael-hawker fb5b405250 Fix #4214 - Update AttachedDropShadow visual when element layout changes and visibility changes 2021-09-07 23:49:52 -07:00
Alexandre Zollinger Chohfi 8454c8f7f0 Merge branch 'main' into winui
# Conflicts:
#	UITests/UITests.App/UITests.App.csproj
#	UnitTests/UnitTests.SourceGenerators/Test_SourceGeneratorsDiagnostics.cs
#	UnitTests/UnitTests.SourceGenerators/UnitTests.SourceGenerators.csproj
2021-09-07 10:53:50 -07:00
Sergio Pedri 28bcbafa25 Added test region in [ICommand] tests 2021-09-04 16:53:17 +02:00