C# 클래스 PhotoSharingApp.Universal.Commands.BaseCommand

Base command for relay commands.
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing

공개 메소드들

메소드 설명
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