Commit Graph
2284 Commits
Author SHA1 Message Date
Alexandre Zollinger Chohfi 7ce75d412b Merge branch 'master' into removeObsolete7 2020-08-19 19:28:59 -07:00
Michael Hawker MSFT (XAML Llama) ad804e90c3 Merge pull request #3346 from Sergio0694/feature/throw-helpers
ThrowHelper APIs
2020-08-19 16:35:51 -07:00
Sergio Pedri 975b375066 Speed/memory improvements to SetPropertyAndNotifyOnCompletion 2020-08-19 13:45:47 +02:00
Alexandre Zollinger Chohfi b744be0122 Update Microsoft.Toolkit/Collections/ReadOnlyObservableGroupedCollection.cs 2020-08-18 15:22:16 -07:00
Sergio Pedri 2183ed757e Improved codegen, moved throw code to external method
Also added a more detailed exception message for users
2020-08-18 13:40:15 +02:00
Sergio Pedri 7316755e49 Removed incorrect MethodImpl.NoInlining attribute
Quick-fix PR to remove an unnecessary `[MethodImpl(MethodImplOptions.NoInlining)]` attribute from a throw helper method.
That attribute caused the JIT not to see the throw in the body, resulting in the caller branch assuming the forward path being taken (the faulty one).
This produced worse codegen, as the non-faulting path was always forced to have an extra jump ahead.
2020-08-18 13:24:09 +02:00
Sergio Pedri 3c2d8632d1 Removed unnecessary using directive 2020-08-18 13:19:12 +02:00
Sergio Pedri 70037aada0 Added IMessenger.Cleanup API (to help with extensibility) 2020-08-17 23:33:55 +02:00
Alexandre Zollinger Chohfi 7eee75145f Removed deprecated NotifyTaskCompletion and Singleton classes. 2020-08-17 11:55:34 -07:00
Herrick Spencer 52b29863c6 Massive spelling fixes 2020-08-17 10:25:41 -07:00
Sergio Pedri 7ea08f4f5c Tweaked XML docs and comments 2020-08-17 13:17:15 +02:00
Sergio Pedri f7fa063345 Fixed an index exception in Messenger.Send 2020-08-17 12:50:27 +02:00
Sergio Pedri f34a7b9191 Updated unit tests 2020-08-17 11:32:16 +02:00
Sergio Pedri 1873f47c47 Fixed some XML comments 2020-08-17 11:30:22 +02:00
Sergio Pedri 05bf6bd6de Added MessageHandler<TMessage> delegate, removed closures 2020-08-17 11:22:56 +02:00
Alexandre Zollinger Chohfi 5ba776112c Removed TabView/TabViewItem, HeaderedTextBlock, LightBehavior/AnimationExtensions.Light, and some other smaller methods marked as Obsolete. 2020-08-14 15:30:25 -07:00
Sergio Pedri b01b9aa0bb Add XML docs for thrown exceptions 2020-08-13 18:51:08 +02:00
Sergio Pedri 6fa47ccfd5 Update ValidateProperty API to mirror SetProperty 2020-08-13 18:47:05 +02:00
Sergio Pedri a32bbfefcc Add initial version of ObservableValidator type 2020-08-13 18:32:32 +02:00
Sergio Pedri e6997c8154 Fixed a typo and tweaked a comment 2020-08-13 01:26:26 +02:00
Sergio Pedri 58680e3af7 Minor performance improvement 2020-08-12 17:59:17 +02:00
Sergio Pedri ea011325ff Enabled shared object[] pool for Messenger 2020-08-12 17:52:17 +02:00
Sergio Pedri 90c63872e4 Merge branch 'master' into improvement/high-performance-tweaks 2020-08-12 13:40:57 +02:00
Sergio Pedri 827cc3e151 Merge branch 'master' into feature/new-bithelper-apis 2020-08-12 13:40:02 +02:00
Sergio Pedri ab962f6af6 Merge branch 'master' into optimization/movsxd-removal 2020-08-12 13:39:40 +02:00
Sergio Pedri 7e7a6545ae Merge branch 'master' into feature/string-pool 2020-08-12 13:39:27 +02:00
Sergio Pedri 44fcd03772 Merge branch 'master' into feature/throw-helpers 2020-08-12 13:36:59 +02:00
Sergio Pedri fc95d7e60c Fixed a build error, minor refactoring 2020-08-12 13:36:40 +02:00
Alexandre Zollinger Chohfi 4890b5ed17 Merge pull request #3420 from windows-toolkit/moreSpelling
fix some spelling
2020-08-11 15:40:38 -07:00
Kyaa Dost 28507d8761 Merge branch 'master' into moreSpelling 2020-08-11 11:24:42 -07:00
msftbot[bot] 41343d8767 Microsoft.Toolkit.Mvvm package (part 2) (#3413)
## Follow up to #3229 
<!-- Add the relevant issue number after the "#" mentioned above (for ex: Fixes #1234) which will automatically close the issue once the PR is merged. -->

### NOTE
Marking this not as a draft so that the CI will run, but added the "DO NOT MERGE ⚠" tag as we might come up with further improvements to add to this PR before actually deciding to merge this and finalize the package.

<!-- 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 that apply to this PR. -->

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

## Notable changes
<!-- Describe how was this issue resolved or changed? -->
This PR includes some refinements and tweaks to the `Microsoft.Toolkit.Mvvm` package, like:

- Added new `ObservableRecipient.SetProperty` overloads with `Expression<Func<T>>` and `bool broadcast` params
- Fixed a possible bug in `Messenger.Type2.Equals` (just to be extra sure)
- Improved codegen for `ObservableRecipient.Set<T>(ref T, T, string)` (missing `EqualityComparer<T>.Default.Equals` inlining)

## PR Checklist

Please check if your PR fulfills the following requirements:

- [X] Tested code with current [supported SDKs](../readme.md#supported)
- [ ] ~~Pull Request has been submitted to the documentation repository [instructions](..\contributing.md#docs). Link: <!-- docs PR link -->~~
- [ ] ~~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/windows-toolkit/WindowsCommunityToolkit-design-assets)~~
- [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
2020-08-11 17:36:09 +00:00
Alexandre Zollinger Chohfi 4c8d87060b Merge branch 'master' into moreSpelling 2020-08-11 10:11:32 -07:00
Alexandre Zollinger Chohfi 20a26b3cb1 Merge branch 'master' into feature/mvvm-toolkit-part2 2020-08-11 10:06:07 -07:00
Alexandre Zollinger Chohfi 603da131ea Merge pull request #3410 from Sergio0694/bugfix/task-result-converter
Improved reliability of Task.GetResultOrDefault
2020-08-11 10:03:28 -07:00
Sergio PedriandMichael Hawker MSFT e143d397cb Updated package title
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2020-08-11 18:55:29 +02:00
Sergio PedriandMichael Hawker MSFT 8dc298aa11 Improved package description
Co-authored-by: Michael Hawker MSFT (XAML Llama) <24302614+michael-hawker@users.noreply.github.com>
2020-08-11 18:49:53 +02:00
Sergio Pedri d3a693013a Updated Microsoft.Toolkit.Mvvm .csproj info 2020-08-11 18:38:13 +02:00
Sergio Pedri ffea056911 Merge branch 'master' into optimization/movsxd-removal 2020-08-08 18:03:49 +02:00
Sergio Pedri d0f667d3f2 Merge branch 'master' into feature/string-pool 2020-08-08 18:03:36 +02:00
Sergio Pedri e42485d18c Merge branch 'master' into feature/mvvm-toolkit-part2 2020-08-08 18:03:07 +02:00
Sergio Pedri 778bc0ba93 Merge branch 'master' into improvement/high-performance-tweaks 2020-08-08 18:02:37 +02:00
Sergio Pedri b776866aa9 Merge branch 'master' into feature/throw-helpers 2020-08-08 18:02:24 +02:00
Sergio Pedri cb3dc08fbc Minor optimization to the MessengerExtensions type 2020-08-08 17:26:30 +02:00
Alexandre Zollinger Chohfi 16f6c4687b Merge branch 'master' into bugfix/task-result-converter 2020-08-07 18:05:18 -07:00
Alexandre Zollinger Chohfi abc074389f Merge pull request #3408 from Sergio0694/bugfix/ci-memory-usage
Reduced memory usage in HighPerformance tests
2020-08-07 18:04:52 -07:00
Sergio Pedri a5edd468b0 Added missing volatile field modifier 2020-08-08 01:49:11 +02:00
Sergio Pedri 8d081ae99a Merge branch 'master' into bugfix/ci-memory-usage 2020-08-07 19:30:35 +02:00
Sergio Pedri 7660f7c215 Improved a comment, fixed a typo 2020-08-07 15:45:04 +02:00
Sergio Pedri 5907963f71 Merge branch 'master' into improvement/high-performance-tweaks 2020-08-07 15:41:59 +02:00
Sergio Pedri 88c75f730a Merge pull request #3412 from windows-toolkit/hotfix-DocSpellingErrors
Fix spelling errors in .csproj and documentation files
2020-08-07 15:40:17 +02:00