Version

AddHandler(RoutedEvent,Delegate) Method

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

Parameters

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