Intersoft ClientUI Documentation
AddCanExecuteHandler Method



The element to attach handler to.
The can execute handler.
Attaches the specified CanExecuteRoutedEventHandler to the specified element.
Syntax
Public Shared Sub AddCanExecuteHandler( _
   ByVal element As DependencyObject, _
   ByVal handler As CanExecuteRoutedEventHandler _
) 
Dim element As DependencyObject
Dim handler As CanExecuteRoutedEventHandler
 
CommandManager.AddCanExecuteHandler(element, handler)
public static void AddCanExecuteHandler( 
   DependencyObject element,
   CanExecuteRoutedEventHandler handler
)
public:
static void AddCanExecuteHandler( 
   DependencyObject^ element,
   CanExecuteRoutedEventHandler^ handler
) 

Parameters

element
The element to attach handler to.
handler
The can execute handler.
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

Reference

CommandManager Class
CommandManager Members

Send Feedback