Construtor ToolCommandBinding (ToolCommand, ExecutedToolEventHandler, CanExecuteToolEventHandler)

Initializes a new instance of the ToolCommandBinding class.

Namespace:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (em Microsoft.Windows.Design.Interaction.dll)

Sintaxe

'Declaração
Public Sub New ( _
    command As ToolCommand, _
    executedToolEventHandler As ExecutedToolEventHandler, _
    canExecuteToolEventHandler As CanExecuteToolEventHandler _
)
public ToolCommandBinding(
    ToolCommand command,
    ExecutedToolEventHandler executedToolEventHandler,
    CanExecuteToolEventHandler canExecuteToolEventHandler
)
public:
ToolCommandBinding(
    ToolCommand^ command, 
    ExecutedToolEventHandler^ executedToolEventHandler, 
    CanExecuteToolEventHandler^ canExecuteToolEventHandler
)
new : 
        command:ToolCommand * 
        executedToolEventHandler:ExecutedToolEventHandler * 
        canExecuteToolEventHandler:CanExecuteToolEventHandler -> ToolCommandBinding
public function ToolCommandBinding(
    command : ToolCommand, 
    executedToolEventHandler : ExecutedToolEventHandler, 
    canExecuteToolEventHandler : CanExecuteToolEventHandler
)

Parâmetros

Exceções

Exceção Condição
ArgumentNullException

command, executeRoutedEventHandler, or canExecuteRoutedEventHandler is nulluma referência nula (Nothing no Visual Basic).

Segurança do .NET Framework

Consulte também

Referência

ToolCommandBinding Classe

Sobrecargas ToolCommandBinding

Namespace Microsoft.Windows.Design.Interaction

Outros recursos

Extensibilidade do WPF Designer

Ferramenta de Arquitetura