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:
public class CanExecuteChangedEventManager : WeakEventManager<ICommand>
Inheritance: objectWeakEventManager<ICommand>CanExecuteChangedEventManager
Inherited Members
Methods
Adds the provided listener to the list of listeners on the provided source.
public static void AddListener(ICommand source, IWeakEventListener listener)
The object with the event.
listenerIWeakEventListenerThe object to add as a listener.
Removes the specified listener from the list of listeners on the provided source.
public static void RemoveListener(ICommand source, IWeakEventListener listener)
The object to remove the listener from.
listenerIWeakEventListenerThe listener to remove.
Begins listening for the CanExecuteChanged event on the given source.
protected override void StartListening(object source)
The object with the event.
Stops listening for the CanExecuteChanged event on the given source.
protected override void StopListening(object source)
The object with the event.