Delen via


ToolCommandBinding.CanExecute Event

Occurs when QueryEnabled for the command is called.

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

Syntax

'Declaration
Public Event CanExecute As CanExecuteToolEventHandler
'Usage
Dim instance As ToolCommandBinding 
Dim handler As CanExecuteToolEventHandler 

AddHandler instance.CanExecute, handler
public event CanExecuteToolEventHandler CanExecute
public:
 event CanExecuteToolEventHandler^ CanExecute {
    void add (CanExecuteToolEventHandler^ value);
    void remove (CanExecuteToolEventHandler^ value);
}
JScript does not support events.

.NET Framework Security

See Also

Reference

ToolCommandBinding Class

ToolCommandBinding Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture