Table of Contents

Constructor CommandContext

Namespace
Terminal.Gui.Input
Assembly
Terminal.Gui.dll

CommandContext(Command, WeakReference<View>?, ICommandBinding?)

Initializes a new instance with the specified Command.

public CommandContext(Command command, WeakReference<View>? source, ICommandBinding? binding)

Parameters

command Command

The command being invoked.

source WeakReference<View>

A weak reference to the view that is the source of the command invocation.

binding ICommandBinding

The binding that triggered the command, if any.