DPB2Class · Utilities and settings

RelayCommand

Provides relay command data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Common.MVVM

public class RelayCommand
Reference: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

5 declared here

CanExecuteChanged

EventLink ↗
public EventHandler RelayCommand.CanExecuteChanged

Raised for can execute changed. Subscribe with the callback type shown in the signature.

Event handler type: EventHandlerNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

RelayCommand

MethodLink ↗
public RelayCommand.RelayCommand(Action<object> execute)

Creates a new RelayCommand instance using the supplied arguments.

Parameters

execute
Parameter type: Action<object>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies execute.

RelayCommand

MethodLink ↗
public RelayCommand.RelayCommand(Action<object> execute, Predicate<object> canExecute)

Creates a new RelayCommand instance using the supplied arguments.

Parameters

execute
Parameter type: Action<object>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies execute.

canExecute
Parameter type: Predicate<object>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies can execute.

CanExecute

MethodLink ↗
public bool RelayCommand.CanExecute(object parameter)

Checks whether it can execute using the supplied arguments.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

parameter
Parameter type: objectNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies parameter.

Returns: A Boolean result. The member description explains the condition being checked.

Execute

MethodLink ↗
public void RelayCommand.Execute(object parameter)

Calls Execute on RelayCommand with parameter. This overload has no return value.

Return type: voidNo return value.

Parameters

parameter
Parameter type: objectNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies parameter.

DPB2 0.4.5.103 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.