The command that is called when the current window is closed. This is a dependency property.
public ICommand ClosingCommand { get; set; }
Public Property ClosingCommand As ICommand
The command can receive a parameter of the System.ComponentModel.CancelEventArgs type.