C# Класс WpfRichText.Ex.Commands.DelegateCommand

This class allows delegating the commanding logic to methods passed as parameters, and enables a View to bind commands to objects that are not part of the element tree.
Наследование: ICommand
Показать файл Открыть проект

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

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

Method to determine if the command can be executed

DelegateCommand ( System.Action executeMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System

Constructor

DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System

Constructor

Execute ( ) : void

Execution of the command

ICommand ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void

Raises the CanExecuteChaged event

Защищенные методы

Метод Описание
OnCanExecuteChanged ( ) : void

Protected virtual method to raise CanExecuteChanged event

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

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

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

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

Method to determine if the command can be executed
public CanExecute ( ) : bool
Результат bool

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

Constructor
public DelegateCommand ( System.Action executeMethod ) : System
executeMethod System.Action
Результат System

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

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod ) : System
executeMethod System.Action
canExecuteMethod Func
Результат System

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

Constructor
public DelegateCommand ( System.Action executeMethod, Func canExecuteMethod, bool isAutomaticRequeryDisabled ) : System
executeMethod System.Action
canExecuteMethod Func
isAutomaticRequeryDisabled bool
Результат System

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

Execution of the command
public Execute ( ) : void
Результат void

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

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

OnCanExecuteChanged() защищенный Метод

Protected virtual method to raise CanExecuteChanged event
protected OnCanExecuteChanged ( ) : void
Результат void

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

Raises the CanExecuteChaged event
public RaiseCanExecuteChanged ( ) : void
Результат void