MVVM框架对比

框架名称

MvvmLigth

CommunityToolkit.Mvvm

Prism

Caliburn.Micro

通知属性

ObservableObject

ObservableObject

BindableBase

PropertyChangedBase

ViewModel基类

ViewModelBase

Screen/Conductor

命令对象

RelayCommand

RelayCommand

DelegateCommand

Action自动匹配

事件

Behavior

Behavior

Behavior

Action自动匹配

消息/事件总线

Messenger

WeakReferenceMessenger

IEventArgureater

IEventArgureater

弹窗/窗口管理

IDialogService

IWindowManager

默认IoC

SimpleIoc

建议:IServiceCollection

Unity/DryIoc

SimpleContainer

区域化

RegionManager

导航

INavigationService

针对Page

RegionManager

INavigationService

针对Page

模块化

Module

匹配规则

你可能感兴趣的:(WPF,c#,wpf)