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. |
| NavigationAware | INavigationAware lifecycle members; Prism 8 Prism.Regions and Prism 9 Prism.Navigation.Regions. |
| DialogAware | IDialogAware members; Prism 8 Prism.Services.Dialogs and Prism 9 Prism.Dialogs. |
| NavigateCommand | IRegionManager.RequestNavigate via DelegateCommand or property-changed navigation. |
| ShowDialogCommand | IDialogService.ShowDialog via DelegateCommand. |
Diagnostics
All compiler IDs are documented in Diagnostics reference.