-
Notifications
You must be signed in to change notification settings - Fork 1.4k
[Feature] Microsoft.Toolkit.Mvvm package (Preview 5) #3562
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
Merged
24 commits merged into
CommunityToolkit:master
from
Sergio0694:feature/mvvm-toolkit-preview5
Feb 13, 2021
Merged
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
cfc7865
Enabled C# 9, switched to target typed new()
Sergio0694 b4f66bd
Memory improvements for weak messenger on NS2.0
Sergio0694 820e078
Added generic ObservableValidator.GetErrors return
Sergio0694 77b0ae2
Changed command CanExecute args to Predicate<T>
Sergio0694 47f495c
Improved nullability annotations in commands
Sergio0694 905307f
Minor codegen improvements
Sergio0694 09ed2f2
Minor code tweaks
Sergio0694 ff82101
Updated NuGet packages
Sergio0694 a28668d
Minor code style tweaks
Sergio0694 446a93b
Fixed NRE when calling CanExecute(null) over value types
Sergio0694 504c3e2
Switched ObservableValidator.ValidateProperty to protected
Sergio0694 5da7ece
Fixed unit tests with RelayCommand and value types
Sergio0694 54ab0f9
Added ObservableValidator.ClearErrors(string) API
Sergio0694 02843c6
Added unit tests for ClearErrors
Sergio0694 0437ee4
Added ObservableValidator.ValidateAllProperties() API
Sergio0694 7351c53
Added caching for reflection setup in ValidateAllProperties
Sergio0694 48157f0
Added missing nullability annotations
Sergio0694 e8b624a
Added .NET 5 target (and removed built-in package)
Sergio0694 d70e6d9
Added missing types to NuGet description
Sergio0694 fefb499
Added custom ValidationContext to ObservableValidator
Sergio0694 69b133c
Tweaked ObservableValidator constructors, added tests
Sergio0694 ae01304
Added missing nullability annotations
Sergio0694 2e10189
Switched to LINQ expressions for ValidateAllProperties
Sergio0694 4792ea2
Added unit test for validation with an injected service
Sergio0694 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
245 changes: 220 additions & 25 deletions
245
Microsoft.Toolkit.Mvvm/ComponentModel/ObservableValidator.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.