1、参照(wpf中prism框架切换页面-CSDN博客)文中配置MainView和MainViewModel
2、模块其实就是引用类库,新建两个类库ModuleA ModuleB,修改输出类型为类库,并配置以下文件:



ModuleA == ModuleAProfile ModuleB == ModuleBProfile 名字要对应
3、 ModuleA ModuleB中安装包: Prism.DryIoc(搜Prism.DryIoc找不到包的话,直接搜Prism.Dry)

4、注册
ModuleAProfile ModuleBProfile 中也要对应的配置以下(下面的这两个方法一定要有,不然会报错)

5、配置Modules文件夹,存放模块
在debug中新建文件
该文件下存放要使用的模块类库

6、启动程序,仍可以实现画面切换
