Generators
MvvmAIO.Prism.SourceGenerators extends partial types at compile time. Attributes live in MvvmAIO.Prism.Core (namespace Prism.SourceGenerators).
Partial types
partial is required wherever generated members merge into your declaration. PSG0001–PSG0005 cover the common mistakes; all five have a MakePartial code fix in the IDE.
Topics
| Topic | Summary |
|---|---|
| ObservableProperty | Field and C# 13+ partial-property targets, PropertyAccess, OnChanging / OnChanged. |
| Notifications & forwarding | [NotifyPropertyChangedFor], [NotifyCanExecuteChangedFor], [property: …] forwarding. |
| DelegateCommand | Sync commands, CanExecute, Task execute, ValueTask. |
| AsyncDelegateCommand | Parallel runs, Catch, CancelAfter, ObservesCanExecute, Prism 8 vs 9 packages. |
| ObservesProperty | Re-evaluate CanExecute when properties change. |
| BindableBase | Generated INPC for types not inheriting Prism BindableBase. |
| BindableValidator | INotifyDataErrorInfo validation via [BindableValidator] and [NotifyDataErrorInfo]. |
| Container registration | Register*, RegisterForNavigation, RegisterDialog, emitted IContainerRegistry calls. |
Diagnostics
All compiler IDs are documented in Diagnostics reference.