Version

AddHandler(UIElement,ICommand,ExecutedRoutedEventHandler) Method

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

Parameters

uiElem
The UIElement to attached the event handler to
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