Saturday, September 1, 2012

Event Forwarder

Example of event forwarder in ICommand implementations see ref1  ref2 in BCL and in RelayCommand:


public event EventHandler CanExecuteChanged
{
add { CommandManager.RequerySuggested += value; }
remove { CommandManager.RequerySuggested -= value; }
}

No comments:

Post a Comment