void Close_Executed(object sender, ExecutedRoutedEventArgs e) { if (CloseVMCommand != null && CloseVMCommand.CanExecute(null)) { CloseVMCommand.Execute(null); } }
private void Close_CanExecute(object sender, CanExecuteRoutedEventArgs e) { e.CanExecute = CloseVMCommand != null && CloseVMCommand.CanExecute(null); }