ClassCanExecuteChangedEventManager
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
AddListener(ICommand, IWeakEventListener)
Adds the provided listener to the list of listeners on the provided source.
Declaration
public static void AddListener(ICommand source, IWeakEventListener listener)
Parameters
source
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
public static void RemoveListener(ICommand source, IWeakEventListener listener)
Parameters
source
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
protected override void StartListening(object source)
Parameters
source
The object with the event.
StopListening(object)
Stops listening for the CanExecuteChanged event on the given source.
Declaration
protected override void StopListening(object source)
Parameters
source
The object with the event.