Costruttore ToolCommandBinding (ToolCommand, ExecutedToolEventHandler, CanExecuteToolEventHandler)

Inizializza una nuova istanza della classe ToolCommandBinding.

Spazio dei nomi:  Microsoft.Windows.Design.Interaction
Assembly:  Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)

Sintassi

'Dichiarazione
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
)

Parametri

Eccezioni

Eccezione Condizione
ArgumentNullException

command, executeRoutedEventHandler o canExecuteRoutedEventHandler è nullriferimento null (Nothing in Visual Basic).

Sicurezza di .NET Framework

Vedere anche

Riferimenti

ToolCommandBinding Classe

Overload ToolCommandBinding

Spazio dei nomi Microsoft.Windows.Design.Interaction

Altre risorse

Estensibilità di Progettazione WPF

Architettura degli strumenti