IRelayCommand<T> Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A generic interface representing a more specific version of IRelayCommand.
public interface IRelayCommand<in T> : CommunityToolkit.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) |