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. The object with the event. |
System. 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. The object to remove the listener from. |
System. 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. 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
System. The object with the event. |