I'm starting a new application for editing files, but I'm not sure how to implement the main menu bar in an MVVM way. It makes sense to create a separate MenuView
which is composed into my ShellView
, but then how do I wire it up to my DocumentView
?
My first thought was to use an event aggregator, but it seems like there would be too many events flying back and forth once you have menu items that need to be enabled/disabled based on context (e.g. copy and paste).
For what it's worth, I'm using Caliburn.Micro as my MVVM framework.