C# Класс Scorchio.Infrastructure.Wpf.RelayCommand

Defines the RelayCommand type.
Наследование: ICommand
Показать файл Открыть проект

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

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

Defines the method that determines whether the command can execute in its current state.

Execute ( object parameter ) : void

Defines the method to be called when the command is invoked.

RelayCommand ( System.Action action ) : System

Initializes a new instance of the RelayCommand class.

RelayCommand ( System.Action action, Func canExecute ) : System

Initializes a new instance of the RelayCommand class.

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

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

Defines the method that determines whether the command can execute in its current state.
public CanExecute ( object parameter ) : bool
parameter object Data used by the command. If the command does not require data to be passed, this object can be set to null.
Результат bool

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

Defines the method to be called when the command is invoked.
public Execute ( object parameter ) : void
parameter object Data used by the command. If the command does not require data to be passed, this object can be set to null.
Результат void

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( System.Action action ) : System
action System.Action The action.
Результат System

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

Initializes a new instance of the RelayCommand class.
public RelayCommand ( System.Action action, Func canExecute ) : System
action System.Action The action.
canExecute Func The can execute.
Результат System