public ApplicationViewModel(IEventAggregator iEventAggregator) { LoadSettings(); this.iEventAggregator = iEventAggregator; SubscriptionToken subscriptionToken = this .iEventAggregator .GetEvent <PubSubEvent <Character> >() .Subscribe((details) => { this.SelectedCharacter = details; }); // Add available pages MenuViewModels.Add(new MainMenuViewModel(Event.EventInstance.EventAggregator)); PageViewModels.Add(new ArrViewModel(Event.EventInstance.EventAggregator)); PageViewModels.Add(new HWViewModel(Event.EventInstance.EventAggregator)); PageViewModels.Add(new ShBViewModel(Event.EventInstance.EventAggregator)); PageViewModels.Add(new SkysteelViewModel(Event.EventInstance.EventAggregator)); // Set starting page CurrentPageViewModel = MenuViewModels[0]; }