Version

AddHandler Method

Adds an event handler of the named event to the SourceElement.
Overload List
OverloadDescription
AddHandler(RoutedEvent,Delegate)Adds an event handler of the named event to the SourceElement.  
AddHandler(ICommand,ExecutedRoutedEventHandler)Add the command binding to the source element tied to the event handler  
AddHandler(UIElement,ICommand,ExecutedRoutedEventHandler)Add the command binding to the supplied UIElement tied to the event handler  
AddHandler(UIElement,RoutedEvent,Delegate)Adds an event handler of the named event to the supplied UIElement.  
AddHandler(RoutedEvent,Delegate,Boolean)Adds an event handler of the named event to the SourceElement.  
AddHandler(UIElement,RoutedEvent,Delegate,Boolean)Adds an event handler of the named event to the SourceElement.  
AddHandler(UIElement,String,Delegate)Adds an event handler of the named event to the supplied UIElement. NOTE: Using a string to hook events, invalidates ForceFire. But typically the only reason you need to use it is because the event is not Routed, and therefore won't have an effect anyway.  
AddHandler(UIElement,String,Type,Delegate)  
AddHandler(UIElement,DependencyProperty,EventHandler)  
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also