using System.Windows.Input; namespace WPF_13_INotifyPropertyChanged.Command; public class ShowCommand : ICommand { private readonly Action _executeAction; public ShowCommand(Action executeAction) { _executeAction = executeAction; } public bool CanExecute(object? parameter) { return true; } public void Execute(object? parameter) { _executeAction(); } public event EventHandler? CanExecuteChanged; }