I have created a view (userControl), with a data entry form. I also have a view model bound to it with all the logic. When the button is pressed it sends the data off to the server (I'm using a RelayCommand for the button) via a ButtonCommand() Method i created.
At the end of this method i want to do a:
this.Close()
but obviosly as "this" isn't referring to the view, it doesnt work.
Is there any way of closing the window without using Codebehind the view?
Thanks in advance