Table of Contents

Class ProxyCommand

Namespace
Tudormobile.Wpf.Commands
Assembly
Tudormobile.WpfApp.dll

Defines a command the serves as a proxy to a subsequent command.

public class ProxyCommand : ICommand
Inheritance
ProxyCommand
Implements
Derived
Inherited Members

Methods

CanExecute(object?)

Determines whether the command can execute in its current state.

public bool CanExecute(object? parameter)

Parameters

parameter object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

Returns

bool

true if this command can be executed; otherwise, false.

Execute(object?)

Defines the method to be called when the command is invoked.

public void Execute(object? parameter)

Parameters

parameter object

Data used by the command. If the command does not require data to be passed, this object can be set to null.

OnCanExecute(object?)

Raises the CanExecute event.

protected virtual bool OnCanExecute(object? parameter)

Parameters

parameter object

Returns

bool

Remarks

If the parameter is an ICommand instance, the execute action is delegated to that instance. Derived objects may override this method to provide custom behavior.

OnCanExecuteChanged()

Raises the CanExecuteChanged event.

protected virtual void OnCanExecuteChanged()

Remarks

Derived objects may override this method to provide custom behavior.

OnExecute(object?)

Raises the Execute event.

protected virtual void OnExecute(object? parameter)

Parameters

parameter object

Remarks

If the parameter is an ICommand instance, the execute action is delegated to that instance. Derived objects may override this method to provide custom behavior.

Events

CanExecuteChanged

Occurs when changes take place that affect whether or not the command should execute.

public event EventHandler? CanExecuteChanged

Event Type

EventHandler