| 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
)
Public Function Attach (
context As Object,
command As ICommand
) As T
Parameters
- context
- Type: SystemObject
The context. - command
- Type: System.Windows.InputICommand
The command.
Return Value
Type:
TThe
CommandSource associated with the
contextSee Also