C# Класс PhotoSharingApp.Universal.Commands.BaseCommand

Base command for relay commands.
Показать файл Открыть проект

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

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

Determines whether this RelayCommand can execute in its current state.

RaiseCanExecuteChanged ( ) : void

Method used to raise the CanExecuteChanged event to indicate that the return value of the CanExecute method has changed.

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

Метод Описание
BaseCommand ( Func canExecute ) : System

Intializes BaseCommand for relay commands.

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

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

Intializes BaseCommand for relay commands.
protected BaseCommand ( Func canExecute ) : System
canExecute Func If set to true, command can be executed. Otherwise, false.
Результат System

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

Determines whether this RelayCommand 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

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

Method used to raise the CanExecuteChanged event to indicate that the return value of the CanExecute method has changed.
public RaiseCanExecuteChanged ( ) : void
Результат void