C# 클래스 Catel.MVVM.CompositeCommand

Composite command which allows several commands inside a single command being exposed to a view.
상속: Command, ICompositeCommand
파일 보기 프로젝트 열기: Catel/Catel 1 사용 예제들

공개 메소드들

메소드 설명
CompositeCommand ( ) : System

Initializes a new instance of the Command{TCanExecuteParameter,TExecuteParameter} class.

GetActions ( ) : IEnumerable

Gets the actions currently registered to this composite command.

GetActionsWithParameter ( ) : IEnumerable>

Gets the actions with parameters currently registered to this composite command.

GetCommands ( ) : IEnumerable

Gets the commands currently registered to this composite command.

RegisterAction ( System.Action action ) : void

Registers the specified action.

RegisterAction ( Action action ) : void

Registers the specified action.

RegisterCommand ( ICommand command, IViewModel viewModel = null ) : void

Registers the specified command.

Note that if the view model is not specified, the command must be unregistered manually in order to prevent memory leaks.

UnregisterAction ( System.Action action ) : void

Unregisters the specified action.

UnregisterAction ( Action action ) : void

Unregisters the specified action.

UnregisterCommand ( ICommand command ) : void

Unregisters the specified command.

비공개 메소드들

메소드 설명
CanExecuteCompositeCommand ( object parameter ) : bool
ExecuteCompositeCommand ( object parameter ) : void
OnCommandCanExecuteChanged ( object sender, EventArgs e ) : void

메소드 상세

CompositeCommand() 공개 메소드

Initializes a new instance of the Command{TCanExecuteParameter,TExecuteParameter} class.
public CompositeCommand ( ) : System
리턴 System

GetActions() 공개 메소드

Gets the actions currently registered to this composite command.
public GetActions ( ) : IEnumerable
리턴 IEnumerable

GetActionsWithParameter() 공개 메소드

Gets the actions with parameters currently registered to this composite command.
public GetActionsWithParameter ( ) : IEnumerable>
리턴 IEnumerable>

GetCommands() 공개 메소드

Gets the commands currently registered to this composite command.
public GetCommands ( ) : IEnumerable
리턴 IEnumerable

RegisterAction() 공개 메소드

Registers the specified action.
The is null.
public RegisterAction ( System.Action action ) : void
action System.Action The action.
리턴 void

RegisterAction() 공개 메소드

Registers the specified action.
The is null.
public RegisterAction ( Action action ) : void
action Action The action.
리턴 void

RegisterCommand() 공개 메소드

Registers the specified command.
Note that if the view model is not specified, the command must be unregistered manually in order to prevent memory leaks.
The is null.
public RegisterCommand ( ICommand command, IViewModel viewModel = null ) : void
command ICommand The command.
viewModel IViewModel The view model. If specified, the command will automatically be unregistered when the view model is closed.
리턴 void

UnregisterAction() 공개 메소드

Unregisters the specified action.
The is null.
public UnregisterAction ( System.Action action ) : void
action System.Action The action.
리턴 void

UnregisterAction() 공개 메소드

Unregisters the specified action.
The is null.
public UnregisterAction ( Action action ) : void
action Action The action.
리턴 void

UnregisterCommand() 공개 메소드

Unregisters the specified command.
The is null.
public UnregisterCommand ( ICommand command ) : void
command ICommand The command.
리턴 void