
MvvmLight的主要程序库
1、GalaSoft.MvvmLight.dll
主要命名空间:
GalaSoft.MvvmLight:最顶层的命名空间,MvvmLight的主体,核心功能
主要对象:ObservableObject、ViewModelBase(实现数据通知相关的内容)、ICleanup
GalaSoft.MvvmLight.Command:主要包含依赖命令的定义
主要对象:RelayCommand、RelayCommand<> 对Icommand的封装
GalaSoft.MvvmLight.Helpers:框架辅助类,供框架内部使用
GalaSoft.MvvmLight.Messaging:消息类,提供全局的消息通知,可以理解为全局的Event事件,
主要对象:Messenger、 NotificationMessage
GalaSoft.MvvmLight.Views:与应用里面的View紧密结合
主要对象:IDialogService、 INavigationService
2、GalaSoft.MvvmLight.Extras.dll
主要命名空间:GalaSoft.MvvmLight.IoC:依赖注入使用的容器
主要对象: ISimpleIoc、SimpleIoC实现
本文介绍了MvvmLight的主要程序库,包括GalaSoft.MvvmLight.dll中的ObservableObject、ViewModelBase和RelayCommand等核心组件,用于数据通知和依赖命令。此外,还涉及到GalaSoft.MvvmLight.Extras.dll中的ISimpleIoc容器和GalaSoft.MvvmLight.Platform.dll中的事件绑定支持。
订阅专栏 解锁全文
8420

被折叠的 条评论
为什么被折叠?



