Delen via


ToolCommand.CanExecuteChanged Event

Occurs when the status of this command changes.

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

Syntax

'Declaration
Public Event CanExecuteChanged As EventHandler
'Usage
Dim instance As ToolCommand 
Dim handler As EventHandler 

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

Implements

ICommand.CanExecuteChanged

Exceptions

Exception Condition
NotSupportedException

When used.

Remarks

The ToolCommand class currently does not implement this event and will throw a NotSupportedException when it is used.

.NET Framework Security

See Also

Reference

ToolCommand Class

ToolCommand Members

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

Understanding WPF Designer Extensibility