Dreamine.Communication.Wpf 1.0.2
Dreamine.Communication.Wpf 통신 기능과 관련 API를 제공합니다.
로딩중...
검색중...
일치하는것 없음
Dreamine.Communication.Wpf.Commands.DelegateCommand 클래스 참조sealed

더 자세히 ...

Dreamine.Communication.Wpf.Commands.DelegateCommand에 대한 상속 다이어그램 :
Dreamine.Communication.Wpf.Commands.DelegateCommand에 대한 협력 다이어그램:

Public 멤버 함수

 DelegateCommand (Action< object?> execute, Predicate< object?>? canExecute=null)
bool CanExecute (object? parameter)
void Execute (object? parameter)
void RaiseCanExecuteChanged ()

이벤트

EventHandler? CanExecuteChanged

Private 속성

readonly Action< object?> _execute
readonly? Predicate< object?> _canExecute

상세한 설명

실행 및 선택적 실행 가능 조건 대리자로 구성되는 WPF 명령입니다.

DelegateCommand.cs 파일의 14 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ DelegateCommand()

Dreamine.Communication.Wpf.Commands.DelegateCommand.DelegateCommand ( Action< object?> execute,
Predicate< object?>? canExecute = null )
inline

실행 대리자와 선택적 실행 가능 조건으로 명령을 초기화합니다.

매개변수
execute명령 호출 시 실행할 동작입니다.
canExecute현재 매개변수로 실행 가능한지 판단할 조건이며, null이면 항상 가능합니다.
예외
ArgumentNullExceptionexecutenull인 경우 발생합니다.

DelegateCommand.cs 파일의 67 번째 라인에서 정의되었습니다.

68 {
69 _execute = execute ?? throw new ArgumentNullException(nameof(execute));
70 _canExecute = canExecute;
71 }

다음을 참조함 : _canExecute, _execute.

멤버 함수 문서화

◆ CanExecute()

bool Dreamine.Communication.Wpf.Commands.DelegateCommand.CanExecute ( object? parameter)
inline

선택적 조건 대리자를 사용해 현재 명령 실행 가능 여부를 확인합니다.

매개변수
parameter조건에 전달할 명령 매개변수입니다.
반환값
실행 가능하면 true입니다.

DelegateCommand.cs 파일의 107 번째 라인에서 정의되었습니다.

108 {
109 return _canExecute?.Invoke(parameter) ?? true;
110 }

다음을 참조함 : _canExecute.

◆ Execute()

void Dreamine.Communication.Wpf.Commands.DelegateCommand.Execute ( object? parameter)
inline

구성된 실행 대리자를 호출합니다.

매개변수
parameter실행 대리자에 전달할 명령 매개변수입니다.

DelegateCommand.cs 파일의 128 번째 라인에서 정의되었습니다.

129 {
130 _execute(parameter);
131 }

다음을 참조함 : _execute.

◆ RaiseCanExecuteChanged()

void Dreamine.Communication.Wpf.Commands.DelegateCommand.RaiseCanExecuteChanged ( )
inline

명령 소비자가 실행 가능 상태를 다시 평가하도록 이벤트를 발생시킵니다.

DelegateCommand.cs 파일의 141 번째 라인에서 정의되었습니다.

142 {
143 CanExecuteChanged?.Invoke(this, EventArgs.Empty);
144 }

다음을 참조함 : CanExecuteChanged.

멤버 데이터 문서화

◆ _canExecute

readonly? Predicate<object?> Dreamine.Communication.Wpf.Commands.DelegateCommand._canExecute
private

can Execute 값을 보관합니다.

DelegateCommand.cs 파일의 33 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : CanExecute(), DelegateCommand().

◆ _execute

readonly Action<object?> Dreamine.Communication.Wpf.Commands.DelegateCommand._execute
private

execute 값을 보관합니다.

DelegateCommand.cs 파일의 24 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : DelegateCommand(), Execute().

이벤트 문서화

◆ CanExecuteChanged

EventHandler? Dreamine.Communication.Wpf.Commands.DelegateCommand.CanExecuteChanged

명령 실행 가능 상태를 다시 평가해야 할 때 발생합니다.

DelegateCommand.cs 파일의 81 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : RaiseCanExecuteChanged().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: