The easiest way is to implement ButtonClick event handler and invoke Window.Close() method, but how doing this through a Command bindi
ButtonClick
Window.Close()
Command
The simplest solution that I know of is to set the IsCancel property to true of the close Button:
IsCancel
Button
No bindings needed, WPF will do that for you automatically!
Reference: MSDN Button.IsCancel property.