I have an application which has a similar interface to Visual Studio, in that there's a list of documents that can be opened, edited an saved. Each document can be of different types and has different editors.
I also have a general Save MenuItem
. What I want to do is have the Save command only save the active document. Is there a standard pattern using MVVM of connecting the documents VM to the Save MenuItem
?