Sergio Pedri
321fc508a6
Switch __ObservableValidatorHelper to [UnconditionalSuppressMessage]
2022-08-02 19:18:52 +02:00
Sergio Pedri
3abc8a9dcb
Replace linker suppressions with attributes
2022-08-02 19:00:14 +02:00
Sergio Pedri
7fdc18e35b
Merge pull request #309 from CommunityToolkit/dev/fix-fields-this-qualifier
...
Add "this." prefix to all field accesses
2022-06-13 17:51:45 +02:00
Sergio Pedri
58aa6a7281
Add missing trimming annotations
2022-06-11 16:31:24 +02:00
Sergio Pedri
6972de2fee
Add "this." prefix to all field accesses
2022-06-11 16:28:44 +02:00
Nirmal Guru
3adf6fb689
Remove BOM from all files
...
Renormalize new lines and remove BOM from all files
2022-06-11 15:36:02 +02:00
Sergio Pedri
0267515b9d
Rename [NotifyRecipients] to [NotifyPropertyChangedRecipients]
2022-06-01 23:26:55 +02:00
Sergio Pedri
139068f297
Enable class-level [NotifyDataErrorInfo] usage
2022-06-01 23:26:53 +02:00
Sergio Pedri
0f0d7bb847
Enable class-level [NotifyRecipients] usage
2022-06-01 23:26:53 +02:00
Sergio Pedri
52e5ebfd18
Rename [NotifyRecipients] attribute
2022-06-01 23:26:53 +02:00
Sergio Pedri
29f94a4ce7
Rename [NotifyDataErrorInfo] attribute
2022-06-01 23:26:53 +02:00
Sergio Pedri
91a7798e42
Rename [NotifyCanExecuteChangedFor] attribute
2022-06-01 23:26:52 +02:00
Sergio Pedri
e7527d79b4
Rename [NotifyPropertyChangedFor] attribute
2022-06-01 23:26:52 +02:00
Sergio Pedri
488a7628f3
Add AlsoValidatePropertyAttribute type
2022-05-31 12:32:48 +02:00
Sergio Pedri
d4a8971ff6
Merge pull request #237 from danielbanda/Typos
...
Typos
2022-05-25 20:12:29 +02:00
Sergio Pedri
db831fc34f
Fix build error with generic ObservableValidator types
2022-05-24 09:54:51 +02:00
Sergio Pedri
b52b427058
Remove [Conditional] from MVVM Toolkit attributes
2022-05-09 16:11:44 +02:00
Daniel Banda
f2dce06b4d
Fixing some typos.
2022-05-03 21:21:10 -07:00
Sergio Pedri
32a17cf5b5
Add AlsoBroadcastChangeAttribute type
2022-03-16 15:30:03 +01:00
Sergio Pedri
b632429c15
Add diagnostics for invalid [ObservableProperty] containing type
2022-03-13 19:37:15 +01:00
Sergio Pedri
33c58e3eda
Remove try/catch when awaiting tasks, ignore exceptions
...
This allows exceptions to remain unobserved and propagate to TaskScheduler.UnobservedTaskException. It will also be more efficient, as there is no longer an exception being thrown and handled if there's one.
2022-02-28 22:37:26 +01:00
Sergio Pedri
98fc90732a
Add __TaskExtensions.GetAwaitableWithoutEndValidation
2022-02-28 22:37:26 +01:00
Sergio Pedri
6f20b2611c
Switch attribute property setters to init-only
2022-01-01 19:53:50 +01:00
Sergio Pedri
350c2374f5
Strip source generator attributes by default
...
Define "MVVMTOOLKIT_KEEP_SOURCE_GENERATOR_ATTRIBUTES" to keep them
2021-12-31 20:10:02 +01:00
Sergio Pedri
704e5073f1
Enable implementing OnActivated/OnDeactivated with [ObservableRecipient]
2021-12-31 17:58:12 +01:00
Sergio Pedri
a7e0f2c370
Enable trimming support in the MVVM Toolkit
...
Also added linker annotations where needed
2021-12-29 19:26:37 +01:00
Sergio Pedri
af82fe95ba
Fix a small typo in XML docs
...
This closes #58
2021-12-29 18:31:47 +01:00
Sergio Pedri
6fb377baee
Remove cached delegate from ObservableObject
2021-12-29 18:31:11 +01:00
Sergio Pedri
3e61aeb3c1
Remove [Pure] attribute usages
2021-12-29 18:06:54 +01:00
Sergio Pedri
68b715f688
Remove unnecessary null warning suppressions
2021-12-14 10:40:18 +01:00
Sergio Pedri
aee23b8935
Add unit tests for ComponentModel checks
2021-12-14 10:35:14 +01:00
Sergio Pedri
9af66c4a8d
Add parameter null validation to ComponentModel APIs
2021-12-14 10:33:06 +01:00
Sergio Pedri
796c1e218b
Add polyfill for ArgumentNullException.ThrowIfNull
2021-12-14 10:33:05 +01:00
Sergio Pedri
b26db77f48
Enable IsINotifyPropertyChangingDisabled switch in ObservableObject
2021-12-10 01:03:19 +01:00
Sergio Pedri
5dc526aa10
Add [AlsoNotifyCanExecuteFor] attribute type
2021-12-09 21:01:30 +01:00
Sergio Pedri
51c7a67c20
More code style improvements and tweaks
...
- Remove unused namespaces
- Remove unused attributes
- Remove unnecessary #nullable enable directives
- Sort using directives
- Simplify names
2021-11-01 22:29:46 +01:00
Sergio Pedri
c176080d37
Switch whole solution to file-scoped namespaces
2021-11-01 20:46:46 +01:00
Sergio Pedri
7a2295b03c
Update some code style rules
...
In particular:
- Use explicit types everywhere to improve clarity
- Use target-typed new() expression when target is explicit
- Use explicit discard for value-returning statements
2021-11-01 20:34:00 +01:00
Sergio Pedri
8b7c87284b
Update namespaces from Microsoft.Toolkit to CommunityToolkit
2021-11-01 17:22:05 +01:00
Sergio Pedri
b498321331
Rename folders/projects from Microsoft.Toolkit to CommunityToolkit
2021-11-01 17:07:47 +01:00