Class
CanExecuteChangedEventManager

Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the ICommand.CanExecuteChanged events.

Definition

Namespace:System.Windows

Assembly:Telerik.Windows.Controls.dll

Syntax:

cs-api-definition
public class CanExecuteChangedEventManager : WeakEventManager<ICommand>

Inheritance: objectWeakEventManager<ICommand>CanExecuteChangedEventManager

Inherited Members WeakEventManager<ICommand>.CheckForNull(object, string)

Methods

AddListener(ICommand, IWeakEventListener)

Adds the provided listener to the list of listeners on the provided source.

Declaration

cs-api-definition
public static void AddListener(ICommand source, IWeakEventListener listener)

Parameters

source

ICommand

The object with the event.

listener

IWeakEventListener

The object to add as a listener.

RemoveListener(ICommand, IWeakEventListener)

Removes the specified listener from the list of listeners on the provided source.

Declaration

cs-api-definition
public static void RemoveListener(ICommand source, IWeakEventListener listener)

Parameters

source

ICommand

The object to remove the listener from.

listener

IWeakEventListener

The listener to remove.

StartListening(object)

Begins listening for the CanExecuteChanged event on the given source.

Declaration

cs-api-definition
protected override void StartListening(object source)

Parameters

source

object

The object with the event.

StopListening(object)

Stops listening for the CanExecuteChanged event on the given source.

Declaration

cs-api-definition
protected override void StopListening(object source)

Parameters

source

object

The object with the event.