TaskCommand

Name Value
Assembly Catel.MVVM
Namespace Catel.MVVM
Available on .NET Framework 4.5, .NET Framework 4.6, Portable Class Libraries, Xamarin - Android, Xamarin - iOS
public class TaskCommand<TExecuteParameter, TCanExecuteParameter> : TaskCommand<TExecuteParameter, TCanExecuteParameter, ITaskProgressReport>

Base types TaskCommand

Implements the Missing: class with only the TExecuteParameter as generic type.

Type Parameters

TExecuteParameter The type of the execute parameter.

TCanExecuteParameter The type of the can execute parameter.

Constructors

TaskCommand(Func execute, Func canExecute, object tag)

Initializes a new instance of the Missing: class.

Parameters

Name Description
execute The action to execute.
canExecute The function to call to determine whether the command can be executed.
tag The tag of the command.

TaskCommand(Func execute, Func canExecute, object tag)

Initializes a new instance of the Missing: class.

Parameters

Name Description
execute The action to execute.
canExecute The function to call to determine whether the command can be executed.
tag The tag of the command.

Have a question about Catel? Use StackOverflow with the Catel tag!


Discussion