CanExecuteChangedEventManager.AddHandler Method

.NET Framework 4.6 and 4.5

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

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

public static void AddHandler(
	ICommand source,
	EventHandler<EventArgs> handler
)

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.

ExceptionCondition
ArgumentNullException

source is null.

--or--

handler is null.

.NET Framework

Supported in: 4.6, 4.5
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft