Table of Contents

Method Register

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

Register(string, ExecuteDelegate, CanExecuteDelegate?)

Registers command with the specified name and implementation.

public virtual ICommand Register(string name, Command.ExecuteDelegate execute, Command.CanExecuteDelegate? canExecute = null)

Parameters

name string

Command name.

execute Command.ExecuteDelegate

Action to execute.

canExecute Command.CanExecuteDelegate

Function to get whether command can be executed.

Returns

ICommand

Register(string, Action)

Registers command with the specified name and implementation.

public virtual ICommand Register(string name, Action execute)

Parameters

name string

Command name.

execute Action

Action to execute.

Returns

ICommand

Register(string, ICommand?)

Registers command with the specified name and implementation.

public virtual void Register(string name, ICommand? command)

Parameters

name string

Command name.

command ICommand

Command provider.