引入后,修改App.xaml 前台引入 xmlns:prism="http://prismlibrary.com/"和prism:PrismApplication App.xaml.cs。新建wpf项目,nuget引入Prism.DryIoc,MaterialDesignThemes。如果方法带有参数,可以使用DelegateCommand泛型声明。上面步骤,同样可以通过新建prism 项目,自动引入引入了prism。在model中新建属性,实现属性自动通知功能。前台绑定控件Command属性调用。