Version

AddHandler(UIElement,String,Delegate) Method

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.
Syntax
'Declaration
 
Protected Overloads Sub AddHandler( _
   ByVal uiElem As System.Windows.UIElement, _
   ByVal sEventName As System.String, _
   ByVal del As System.Delegate _
) 
protected void AddHandler( 
   System.Windows.UIElement uiElem,
   System.string sEventName,
   System.Delegate del
)
protected: void AddHandler( 
   System.Windows.UIElement* uiElem,
   System.string* sEventName,
   System.Delegate* del
) 

Parameters

uiElem
The UIElement to hook the event too. Typically used if different from the SourceElement
sEventName
The name of the event to be hooked
del
The method delegate for the event
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