Version

AddHandler(RoutedEvent,Delegate,Boolean) 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, _
   ByVal bForceFire As System.Boolean _
) 
protected void AddHandler( 
   System.Windows.RoutedEvent rtdEvent,
   System.Delegate del,
   System.bool bForceFire
)
protected: void AddHandler( 
   System.Windows.RoutedEvent* rtdEvent,
   System.Delegate* del,
   System.bool bForceFire
) 

Parameters

rtdEvent
The event to be hooked
del
The method delegate for the event
bForceFire
Defines if you want to listen to the routed event even if it has already been handled.
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