Share via


ToolCommandBinding Constructor (ToolCommand, ExecutedToolEventHandler)

Initializes a new instance of the ToolCommandBinding class.

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

Syntax

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

Parameters

Exceptions

Exception Condition
ArgumentNullException

command or executedToolEventHandler is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

ToolCommandBinding Class

ToolCommandBinding Overload

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture