Table of Contents

Method Connect

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

Connect(View, View, params Command[])

Connects an owner view to a remote view for the specified commands. When the remote view raises Accepted or Activated for any of the specified commands, the owner view receives the command with Bridged routing.

public static CommandBridge Connect(View owner, View remote, params Command[] commands)

Parameters

owner View

The view that will receive bridged commands.

remote View

The view whose events will be bridged.

commands Command[]

The commands to bridge (e.g., Command.Accept, Command.Activate).

Returns

CommandBridge

A CommandBridge that can be disposed to tear down the connection.