C# Класс UWP10template.Base.DelegateCommand

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

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

Метод Описание
DelegateCommand ( System.Action execute ) : System

Initializes a new instance of the RelayCommand class that can always execute.

DelegateCommand ( System.Action execute, Func canExecute ) : System

Initializes a new instance of the RelayCommand class.

Execute ( object parameter ) : void

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

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

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

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

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

Initializes a new instance of the RelayCommand class that can always execute.
If the execute argument is null.
public DelegateCommand ( System.Action execute ) : System
execute System.Action The execution logic.
Результат System

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

Initializes a new instance of the RelayCommand class.
If the execute argument is null.
public DelegateCommand ( System.Action execute, Func canExecute ) : System
execute System.Action The execution logic.
canExecute Func The execution status logic.
Результат System

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

Defines the method to be called when the command is invoked.
public Execute ( object parameter ) : void
parameter object This parameter will always be ignored.
Результат void