Intersoft ClientUI Documentation
CommandBinding Constructor(ICommand,ExecutedRoutedEventHandler,CanExecuteRoutedEventHandler)
See Also  Send Feedback
Intersoft.Client.Framework.Input Namespace > CommandBinding Class > CommandBinding Constructor : CommandBinding Constructor(ICommand,ExecutedRoutedEventHandler,CanExecuteRoutedEventHandler)






command
executed
canExecute
Initializes a new instance of the CommandBinding class by using the specified ICommand and the specified Executed and CanExecute even handlers.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal command As ICommand, _
   ByVal executed As ExecutedRoutedEventHandler, _
   ByVal canExecute As CanExecuteRoutedEventHandler _
)
Visual Basic (Usage)Copy Code
Dim command As ICommand
Dim executed As ExecutedRoutedEventHandler
Dim canExecute As CanExecuteRoutedEventHandler
 
Dim instance As New CommandBinding(command, executed, canExecute)
C# 
public CommandBinding( 
   ICommand command,
   ExecutedRoutedEventHandler executed,
   CanExecuteRoutedEventHandler canExecute
)
Delphi 
public CommandBinding( 
    command: ICommand;
    executed: ExecutedRoutedEventHandler;
    canExecute: CanExecuteRoutedEventHandler
); 
JScript 
public function CommandBinding( 
   command : ICommand,
   executed : ExecutedRoutedEventHandler,
   canExecute : CanExecuteRoutedEventHandler
);
Managed Extensions for C++ 
public: CommandBinding( 
   ICommand* command,
   ExecutedRoutedEventHandler* executed,
   CanExecuteRoutedEventHandler* canExecute
)
C++/CLI 
public:
CommandBinding( 
   ICommand^ command,
   ExecutedRoutedEventHandler^ executed,
   CanExecuteRoutedEventHandler^ canExecute
)

Parameters

command
executed
canExecute

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.