Skip to content

言語 / Languages

このページは English と 简体中文 でもご覧いただけます。

ソースジェネレータ ​

MvvmAIO.Prism.SourceGenerators はコンパイル時に partial 型を拡張します。属性は MvvmAIO.Prism.Core(名前空間 Prism.SourceGenerators)にあります。

partial 型

生成メンバをマージする宣言は partial が必要です。PSG0001–PSG0005 が典型ミスをカバーし、5 つとも MakePartial コードフィックスがあります。

トピック ​

トピック要約
ObservablePropertyフィールドと C# 13+ partial プロパティ、PropertyAccess、OnChanging / OnChanged。
通知と転送[NotifyPropertyChangedFor]、[NotifyCanExecuteChangedFor]、[property: …] 転送。
DelegateCommand同期、CanExecute、Task、ValueTask。
AsyncDelegateCommand並列、Catch、CancelAfter、ObservesCanExecute、Prism 8 と 9 のパッケージ差。
ObservesPropertyプロパティ変更時に CanExecute を再評価。
BindableBasePrism BindableBase を継承しない型への INPC。
BindableValidator[BindableValidator] と [NotifyDataErrorInfo] で INotifyDataErrorInfo 検証サポートを生成。
コンテナ登録Register*、RegisterForNavigation、RegisterDialog、IContainerRegistry 呼び出し生成。
NavigationAwareINavigationAware ライフサイクル;Prism 8 Prism.Regions / Prism 9 Prism.Navigation.Regions。
DialogAwareIDialogAware;Prism 8 Prism.Services.Dialogs / Prism 9 Prism.Dialogs。
NavigateCommand (EN)IRegionManager.RequestNavigate コマンド生成(英語ドキュメント)。
ShowDialogCommand (EN)IDialogService.ShowDialog コマンド生成(英語ドキュメント)。

診断 ​

すべてのコンパイラ ID は 診断リファレンス にまとめています。

次へ ​

MIT ライセンスの下で公開されています。