CanExecuteChangedEventManager.AddHandler Method (ICommand, EventHandler<EventArgs>)

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Adds the specified delegate as an event handler of the specified source.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

static member AddHandler : 
        source:ICommand *
        handler:EventHandler<EventArgs> -> unit

Parameters

source
Type: System.Windows.Input.ICommand

The source object that the raises the CanExecuteChanged event.

handler
Type: System.EventHandler<EventArgs>

The delegate that handles the CanExecuteChanged event.

Exception Condition
ArgumentNullException

source is null.

--or--

handler is null.

.NET Framework
Available since 4.5
Return to top
Show: