ShutdownAppCommand.cs 336 B

1234567891011121314
  1. using System;
  2. using System.Windows;
  3. using System.Windows.Input;
  4. namespace HandyControl.Interactivity;
  5. public class ShutdownAppCommand : ICommand
  6. {
  7. public bool CanExecute(object parameter) => true;
  8. public void Execute(object parameter) => Application.Current.Shutdown();
  9. public event EventHandler CanExecuteChanged;
  10. }