C# Class MyDriving.Helpers.RelayCommand

Inheritance: ICommand
Show file Open project: Azure-Samples/MyDriving

Public Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void
RaiseCanExecuteChanged ( ) : void

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

RelayCommand ( System.Action handler, Func canExecute = null ) : System

Method Details

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void

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

RelayCommand() public method

public RelayCommand ( System.Action handler, Func canExecute = null ) : System
handler System.Action
canExecute Func
return System