Compartir a través de


ToolCommandBinding (Constructor) (ToolCommand, ExecutedToolEventHandler)

Inicializa una nueva instancia de la clase ToolCommandBinding.

Espacio de nombres:  Microsoft.Windows.Design.Interaction
Ensamblado:  Microsoft.Windows.Design.Interaction (en Microsoft.Windows.Design.Interaction.dll)

Sintaxis

'Declaración
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

Excepciones

Excepción Condición
ArgumentNullException

El valor de command o executedToolEventHandler es nullreferencia null (Nothing en Visual Basic).

Seguridad de .NET Framework

Vea también

Referencia

ToolCommandBinding Clase

ToolCommandBinding (Sobrecarga)

Microsoft.Windows.Design.Interaction (Espacio de nombres)

Otros recursos

Extensibilidad de WPF Designer

Arquitectura de herramientas