Intersoft ClientUI Documentation
AddCanExecuteHandler Method
See Also  Send Feedback
Intersoft.Client.Framework.Input Namespace > CommandManager Class : AddCanExecuteHandler Method






element
The element to attach handler to.
handler
The can execute handler.
Attaches the specified CanExecuteRoutedEventHandler to the specified element.

Syntax

Visual Basic (Declaration) 
Public Shared Sub AddCanExecuteHandler( _
   ByVal element As DependencyObject, _
   ByVal handler As CanExecuteRoutedEventHandler _
) 
Visual Basic (Usage)Copy Code
Dim element As DependencyObject
Dim handler As CanExecuteRoutedEventHandler
 
CommandManager.AddCanExecuteHandler(element, handler)
C# 
public static void AddCanExecuteHandler( 
   DependencyObject element,
   CanExecuteRoutedEventHandler handler
)
Delphi 
public procedure AddCanExecuteHandler( 
    element: DependencyObject;
    handler: CanExecuteRoutedEventHandler
); static; 
JScript 
public static function AddCanExecuteHandler( 
   element : DependencyObject,
   handler : CanExecuteRoutedEventHandler
);
Managed Extensions for C++ 
public: static void AddCanExecuteHandler( 
   DependencyObject* element,
   CanExecuteRoutedEventHandler* handler
) 
C++/CLI 
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.