I have a save button and I want to use the MVVM design pattern, but I need to close the window once the save has been done, I looked a little on the web and saw that this is a lot of work, so i decided to make the window.close() on the code behind and all the saving logic on the view model.
How can I implement a button with a command binding and also an event handler?