// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Windows.Input; namespace Wpf.Ui.Common; /// /// A generic interface representing a more specific version of . /// /// The type used as argument for the interface methods. public interface IRelayCommand : IRelayCommand { /// /// Provides a strongly-typed variant of . /// /// The input parameter. /// Whether or not the current command can be executed. /// Use this overload to avoid boxing, if is a value type. bool CanExecute(T? parameter); /// /// Provides a strongly-typed variant of . /// /// The input parameter. /// Use this overload to avoid boxing, if is a value type. void Execute(T? parameter); }