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






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

Syntax

Visual Basic (Declaration) 
Public Shared Sub AddPreviewCanExecuteHandler( _
   ByVal element As DependencyObject, _
   ByVal handler As CanExecuteRoutedEventHandler _
) 
Visual Basic (Usage)Copy Code
Dim element As DependencyObject
Dim handler As CanExecuteRoutedEventHandler
 
CommandManager.AddPreviewCanExecuteHandler(element, handler)
C# 
public static void AddPreviewCanExecuteHandler( 
   DependencyObject element,
   CanExecuteRoutedEventHandler handler
)
Delphi 
public procedure AddPreviewCanExecuteHandler( 
    element: DependencyObject;
    handler: CanExecuteRoutedEventHandler
); static; 
JScript 
public static function AddPreviewCanExecuteHandler( 
   element : DependencyObject,
   handler : CanExecuteRoutedEventHandler
);
Managed Extensions for C++ 
public: static void AddPreviewCanExecuteHandler( 
   DependencyObject* element,
   CanExecuteRoutedEventHandler* handler
) 
C++/CLI 
public:
static void AddPreviewCanExecuteHandler( 
   DependencyObject^ element,
   CanExecuteRoutedEventHandler^ handler
) 

Parameters

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