API
ICommand.CanExecuteChanged
Signals that availability may need to be queried again. The event does not execute the command or prove authorization. Custom commands should define when and where to raise it.
Formal Syntax & Structure
csharp syntaxcsharp
command.CanExecuteChanged += handler;Working Example
Example Snippetcsharp
using System;using System.ComponentModel;using System.Collections.ObjectModel;using System.Windows.Input;// Partial snippet inside an ICommand implementation.CanExecuteChanged?.Invoke(this,EventArgs.Empty);