I am writing an application using MVVM and I have a mainViewModel attached to the data context of the main window which contains a ribbon control. The mainViewModel has a selectedModel property and when that property is null, the application should only show the ribbon window's backstage and not allow access to any other ribbon tab or the mainWindow itself. Once the selectedModel property is set (this would happen through a bound command on the backstage), the backstage would close and make visible the main window and the other relevant ribbon tabs.
I know there is a ShowBackstage and a HideBackstage method available, but I would prefer to base the showing and hiding of the backstage through a bound property or bound command located in the ViewModel. Is this possible and if so, how do I go about implementing this approach?
If not, is there a way to access the ShowBackstage and HideBackstage methods through a view model property or command?
Thank you