C# Класс Mckineap.Utilities.RelayCommand

Наследование: ICommand
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CanExecute ( object parameter ) : bool
Destroy ( ) : void
Execute ( object parameter ) : void
OnCanExecuteChanged ( ) : void
RelayCommand ( Action execute ) : System

Creates a new command of type T that can always execute

RelayCommand ( Action execute, Predicate canExecute ) : System

Creates a new command of type T with conditional execution

Приватные методы

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

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

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

public CanExecute ( object parameter ) : bool
parameter object
Результат bool

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

public Destroy ( ) : void
Результат void

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

public Execute ( object parameter ) : void
parameter object
Результат void

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

public OnCanExecuteChanged ( ) : void
Результат void

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

Creates a new command of type T that can always execute
public RelayCommand ( Action execute ) : System
execute Action The execute logic
Результат System

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

Creates a new command of type T with conditional execution
public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action The execute logic
canExecute Predicate The execute status logic
Результат System