Version

AddHandler(UIElement,RoutedEvent,Delegate) Method

Adds an event handler of the named event to the supplied UIElement.
Syntax
'Declaration
 
Protected Overloads Sub AddHandler( _
   ByVal uiElem As System.Windows.UIElement, _
   ByVal rtdEvent As System.Windows.RoutedEvent, _
   ByVal del As System.Delegate _
) 
protected void AddHandler( 
   System.Windows.UIElement uiElem,
   System.Windows.RoutedEvent rtdEvent,
   System.Delegate del
)
protected: void AddHandler( 
   System.Windows.UIElement* uiElem,
   System.Windows.RoutedEvent* rtdEvent,
   System.Delegate* del
) 

Parameters

uiElem
The UIElement to hook the event too. Typically used if different from the SourceElement
rtdEvent
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