Wpf Close Window Button. Whether you want to close a window when a button is clicked or based