My application has a menu, content area, and status bar. The user can select File -> Database which prompts the user for database parameters (server and port) in a new window. When the user clicks the “ok” button we need to update the status bar with the new connection.
I know the menu item view should be bound to a command that is in the view model but how should I go about displaying the window? Creating it in the view model seems wrong. Publishing an event on the event aggregator seems to be giving up to much control.
Updating the status bar using the event aggregator makes a lot of sense to me because many different parts of the application could care that the database changed.
Note: I'm using Prism