Table of Contents

Constructor CommandContext

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

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

Initializes a new instance with the specified Command.

public CommandContext(Command command, WeakReference<View>? source, IInputBinding? 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 IInputBinding

The binding that triggered the command, if any.