外观
约 68 字小于 1 分钟
PrismC#MVVMWPF
2025-06-10
使用自定义窗口显示 Dialog:
containerRegistry.RegisterDialogWindow<MyCustomWindow>(); containerRegistry.RegisterDialog<NotificationDialog, NotificationDialogViewModel>();
这段代码应该写在 Bootstrapper 类的 ConfigureContainer 方法中。且 MyCustomWindow 必须继承自 IDialogWindow 接口。
Bootstrapper
ConfigureContainer
MyCustomWindow
IDialogWindow
版权归属:子雨
许可证:署名 4.0 国际 (CC-BY-4.0)