Share 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
public event CanExecuteToolEventHandler CanExecute
public:
 event CanExecuteToolEventHandler^ CanExecute {
    void add (CanExecuteToolEventHandler^ value);
    void remove (CanExecuteToolEventHandler^ value);
}
member CanExecute : IEvent<CanExecuteToolEventHandler,
    CanExecuteToolEventArgs>
JScript does not support events.

.NET Framework Security

See Also

Reference

ToolCommandBinding Class

Microsoft.Windows.Design.Interaction Namespace

Other Resources

WPF Designer Extensibility

Tool Architecture