public MainPageViewModel(ILoggingSystem <MainPageViewModel> logger, IEventAggregator eventAggregator) { OpenTestCommand = new RelayCommand(o => eventAggregator.Invoke(new TestEvent() { Message = $"Input: {Message}" })); OpenNewPageCommand = new RelayCommand(o => eventAggregator.Invoke(new OpenNewPageEvent() { ViewModelType = typeof(NewPageViewModel) })); }
public NewPageViewModel(IEventAggregator eventAggregator) { OpenWelcomePageCommand = new RelayCommand(o => eventAggregator.Invoke(new OpenNewPageEvent() { ViewModelType = typeof(MainPageViewModel) })); }