Occurs when changes occur that affect whether or not the command should execute.
Event CanExecuteChanged As EventHandler
Dim instance As ICommand Dim handler As EventHandler AddHandler instance.CanExecuteChanged, handler
event EventHandler CanExecuteChanged
event EventHandler^ CanExecuteChanged { void add (EventHandler^ value); void remove (EventHandler^ value); }
JScript does not support events.
You cannot use this event in XAML.
Normally, a command source calls CanExecute on the command when this event occurs.
Normally, if the command cannot execute, the command source disables itself.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003