Class CanExecuteChangedEventManager
Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the ICommand.CanExecuteChanged events.
Inheritance
Inherited Members
Namespace: System.Windows
Assembly: Telerik.Windows.Controls.dll
Syntax
public class CanExecuteChangedEventManager : WeakEventManager<ICommand>
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
System.Windows.Input.ICommand
source
The object with the event. |
IWeakEventListener
listener
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
System.Windows.Input.ICommand
source
The object to remove the listener from. |
IWeakEventListener
listener
The listener to remove. |
StartListening(Object)
Begins listening for the CanExecuteChanged event on the given source.
Declaration
protected override void StartListening(object source)
Parameters
System.Object
source
The object with the event. |
Overrides
StopListening(Object)
Stops listening for the CanExecuteChanged event on the given source.
Declaration
protected override void StopListening(object source)
Parameters
System.Object
source
The object with the event. |