MVVM Light toolkit is a lightweight toolkit for MVVM. This toolkit provides very basic classes for developing your application in MVVM architecture.
You can download the latest MVVM Light Toolkit from here.
MVVM Light Toolkit comes with 2 main DLLs.
Main classes in GalaSoft.MvvmLight.dll are:
- ObservableObject - Base class for Model classes. It creates Model properties as observable.
- ViewModelBase - Base class for ViewModel classes.
- RelayCommand - A command. More about commands here.
- WeakAction - Stores an System.Action without causing a hard reference to be created to the Action's owner. The owner can be garbage collected at any time.
- WeakFunc - Stores an Func without causing a hard reference to be created to the Func's owner. The owner can be garbage collected at any time.
- Messenger - Class for allowing objects to exchange messages.
- MessageBase - Base class for all messages broadcasted by the Messenger.
- DispatcherHelper - Helper class for dispatcher operations on the UI thread.
Main classes in GalaSoft.MvvmLight.Extra.dll are:
- EventToCommand - Used for bind any event of FrameworkElement to ICommand.
- SimpleIOC - An IOC container for register and resolve instances.