I have a WPF-Application based on MVVM-Pattern. All works fine. In the business logic of View-Model I need to invoke some dialogs. I have implemented it through an interface(interface implementation is in a View layer).
For the dialogs I need to set the parent window, so the function in interface has an argument "parentView".
In my ViewModel I have a property "View" from type "object" for a parent window. This property I put as argument for instantiating of a dialog.
Since "View"-property is from type "object" and is set from View layer and forwarded back to the View layer, the View-Model layer has no dependencies on View layer.
What do you think, have I broken the MVVM-Pattern?