Click or drag to resize

CommandSourceFactoryTAttach Method

Attaches the specified command. The last command attached will become the active command, while the previous command will be pushed on a stack.

Namespace:  TomsToolbox.Wpf.Composition
Assembly:  TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll)
Syntax
public T Attach(
	Object? context,
	ICommand command
)

Parameters

context
Type: SystemObject
The context.
command
Type: System.Windows.InputICommand
The command.

Return Value

Type: T
The CommandSource associated with the context
See Also