 | CommandSourceFactoryTDetach Method |
Detaches the specified command. If the detached command was the active command, the previous command from the stack will become the active command.
Namespace: TomsToolbox.Wpf.CompositionAssembly: TomsToolbox.Wpf.Composition (in TomsToolbox.Wpf.Composition.dll) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntaxpublic T Detach(
Object? context,
ICommand command
)
Public Function Detach (
context As Object,
command As ICommand
) As T
Parameters
- context Object
- The context.
- command ICommand
- The command.
Return Value
TThe
CommandSource associated with the
context
ExceptionsException | Condition |
---|
ArgumentException | Can't detach a command that has not been attached before;command |
See Also