C# Класс GeekyTool.Core.Commands.DelegateCommandAsync

This class allows us to delegate command execution to viewmodels. This version of the command allow to use async/await.
Наследование: ICommand
Показать файл Открыть проект

Открытые методы

Метод Описание
CanExecute ( object parameter ) : bool

This method is called from XAML to evaluate if the command can be executed.

DelegateCommandAsync ( Func execute ) : System

Constructor not using canExecute.

DelegateCommandAsync ( Func execute, Func canExecute ) : System

Constructor using both execute and canExecute.

Execute ( object parameter ) : void

This method is called from XAML to execute the command.

RaiseCanExecuteChanged ( ) : void

This method allow us to force the execution of CanExecute method to reevaluate execution.

Описание методов

CanExecute() публичный Метод

This method is called from XAML to evaluate if the command can be executed.
public CanExecute ( object parameter ) : bool
parameter object
Результат bool

DelegateCommandAsync() публичный Метод

Constructor not using canExecute.
public DelegateCommandAsync ( Func execute ) : System
execute Func
Результат System

DelegateCommandAsync() публичный Метод

Constructor using both execute and canExecute.
public DelegateCommandAsync ( Func execute, Func canExecute ) : System
execute Func
canExecute Func
Результат System

Execute() публичный Метод

This method is called from XAML to execute the command.
public Execute ( object parameter ) : void
parameter object
Результат void

RaiseCanExecuteChanged() публичный Метод

This method allow us to force the execution of CanExecute method to reevaluate execution.
public RaiseCanExecuteChanged ( ) : void
Результат void