Version

AddHandler(ICommand,ExecutedRoutedEventHandler) Method

Add the command binding to the source element tied to the event handler
Syntax
'Declaration
 
Protected Overloads Sub AddHandler( _
   ByVal command As System.Windows.Input.ICommand, _
   ByVal handler As System.Windows.Input.ExecutedRoutedEventHandler _
) 
protected void AddHandler( 
   System.Windows.Input.ICommand command,
   System.Windows.Input.ExecutedRoutedEventHandler handler
)
protected: void AddHandler( 
   System.Windows.Input.ICommand* command,
   System.Windows.Input.ExecutedRoutedEventHandler* handler
) 

Parameters

command
The routed command id to be added
handler
The event handler to be executed when the command is triggered
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