Commit Graph

23 Commits

Author SHA1 Message Date
Sergio Pedri b52b427058 Remove [Conditional] from MVVM Toolkit attributes 2022-05-09 16:11:44 +02: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