public AppViewModel(ColorViewModel colorModel, IEventAggregator events) { ColorModel = colorModel; // Get the event aggregator through the constructor and subscribe this ColorViewModel so it can listen for ColorEvent messages. events.Subscribe(this); }
public AppViewModel(ColorViewModel colorModel, IEventAggregator events) { ColorModel = colorModel; events.Subscribe(this); }