Edytuj

Udostępnij za pośrednictwem


IRelayCommand<T> Interface

Definition

A generic interface representing a more specific version of IRelayCommand.

public interface IRelayCommand<in T> : Microsoft.Toolkit.Mvvm.Input.IRelayCommand, System.Windows.Input.ICommand
type IRelayCommand<'T> = interface
    interface IRelayCommand
    interface ICommand
Public Interface IRelayCommand(Of In T)
Implements ICommand, IRelayCommand

Type Parameters

T

The type used as argument for the interface methods.

This type parameter is contravariant. That is, you can use either the type you specified or any type that is less derived. For more information about covariance and contravariance, see Covariance and Contravariance in Generics.
Derived
Implements

Methods

CanExecute(T)

Provides a strongly-typed variant of CanExecute(Object).

Execute(T)

Provides a strongly-typed variant of Execute(Object).

NotifyCanExecuteChanged()

Notifies that the CanExecute(Object) property has changed.

(Inherited from IRelayCommand)

Applies to