Files
HandyControl/src/Shared/HandyControl_Shared/Interactivity/Commands/ShutdownAppCommand.cs
T
2019-05-28 23:47:07 +08:00

15 lines
361 B
C#

using System;
using System.Windows;
using System.Windows.Input;
namespace HandyControl.Interactivity
{
public class ShutdownAppCommand : ICommand
{
public bool CanExecute(object parameter) => true;
public void Execute(object parameter) => Application.Current.Shutdown();
public event EventHandler CanExecuteChanged;
}
}