I have MVVM, where VM is in separate ClassLibrary project. I need to implement closing window.
All solutions that I see involve passing window directly. The problem is that Class Library doesn't know System.Windows.Window
type so, even though I can pass the form as object I cannot call a Close
method on it.
What should I do? Is there a solution, specific for Class Libraries?