Share 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
public event EventHandler CanExecuteChanged
public:
virtual  event EventHandler^ CanExecuteChanged {
    void add (EventHandler^ value);
    void remove (EventHandler^ value);
}
abstract CanExecuteChanged : IEvent<EventHandler,
    EventArgs>
override CanExecuteChanged : IEvent<EventHandler,
    EventArgs>
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

Microsoft.Windows.Design.Interaction Namespace

Other Resources

Tool Architecture

Understanding WPF Designer Extensibility