CommandT1, T2 Class

A generic implementation of the ICommand interface.

Definition

Namespace: BeeMobile.VirtualKeyboard
Assembly: BeeMobile.VirtualKeyboard.AVA.NET6 (in BeeMobile.VirtualKeyboard.AVA.NET6.dll) Version: 11.0.0.2+aef809e856abb10e94d0b4c45f10d1805addc36e
C#
public class Command<T1, T2> : ICommand
Inheritance
Object    CommandT1, T2
Implements
ICommand

Type Parameters

T1
Type of the Execute parameter
T2
Type of the CanExecute parameter

Constructors

CommandT1, T2(ActionT1) Creates a new command.
CommandT1, T2(ActionT1, PredicateT2) Creates a new command.

Methods

CanExecute(T2) The predicate exposed as a method. Can be called to determine wether the command should execute in its current state.
CanExecute(Object)Defines the method that determines whether the command can execute in its current state.
Execute(T1) Invokes the underlying action.
Execute(Object)Defines the method to be called when the command is invoked.
RaiseCanExecuteChanged This method can be used to inform the objects subscribed to the CanExecuteChanged that the state has changed.

Events

CanExecuteChangedOccurs when changes occur that affect whether or not the command should execute.

See Also