That's right, and now I believe that I installed this application correctly, but correct me if I'm wrong, just for the reason that I have 3 modules loaded in my boot module, one is a navigation module, and the other two are views.
Regardless of the code, if I load the modules in the initialization method, add them to the area in which everything works fine, but of course id, as some control.
Now in the navigation view model, I have an event aggregator that publishes an event (a class that inherits from EventArgs, if that matters), the other two modules subscribed to this event, but did not receive it,
public void CarryOutMenuItemSelectionMethods(NavigationViewSelectionEventArgs e)
{
_eventAggregator.GetEvent<NavigationMenuItemSelectedEvent>().Publish(e);
}
in navigation ViewModel and then subscribed to the news module
_eventAggregator.GetEvent<NavigationMenuItemSelectedEvent>().Subscribe(NavigationMenuReturnedEvent,
ThreadOption.UIThread);
, , , , , ?
, viewsand view (, ). , , , , ,
_displayNewsView = new DisplayNewsView(new DisplayNewsViewModel(_eventAggregator));
viewmodels ?