Construtor ToolCommandBinding (ToolCommand, ExecutedToolEventHandler)

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 _
)
public ToolCommandBinding(
    ToolCommand command,
    ExecutedToolEventHandler executedToolEventHandler
)
public:
ToolCommandBinding(
    ToolCommand^ command, 
    ExecutedToolEventHandler^ executedToolEventHandler
)
new : 
        command:ToolCommand * 
        executedToolEventHandler:ExecutedToolEventHandler -> ToolCommandBinding
public function ToolCommandBinding(
    command : ToolCommand, 
    executedToolEventHandler : ExecutedToolEventHandler
)

Parâmetros

Exceções

Exceção Condição
ArgumentNullException

commandor executedToolEventHandler 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