Project Description
This project contains a sample application demonstrating the Model View ViewModel Presenter (MVVMP) Pattern using Unity, MEF and Prism
It also contains a stub that can be used to rapidly build an MVVMP based application using Prism.
{{ class LEDPresenter: PresenterBase<ILEDView, LEDViewModel> { public LEDPresenter(ILEDView view, IEventAggregator eventAggregator): base(view) { eventAggregator.GetEvent().Subscribe(OnResultChanged); }
void OnResultChanged(int result)
{
ViewModel.Result = result;
}
} }}
Read the following for explanation: