C# Class PhotoSharingApp.Universal.Commands.BaseCommand

Base command for relay commands.
Mostrar archivo Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
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.

Protected Methods

Method Description
BaseCommand ( Func canExecute ) : System

Intializes BaseCommand for relay commands.

Method Details

BaseCommand() protected method

Intializes BaseCommand for relay commands.
protected BaseCommand ( Func canExecute ) : System
canExecute Func If set to true, command can be executed. Otherwise, false.
return System

CanExecute() public method

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. ///
return bool

RaiseCanExecuteChanged() public method

Method used to raise the CanExecuteChanged event to indicate that the return value of the CanExecute method has changed.
public RaiseCanExecuteChanged ( ) : void
return void