| Visual Basic (Declaration) | |
|---|---|
Public Event CanExecute As CanExecuteRoutedEventHandler | |
| Visual Basic (Usage) | Copy Code |
|---|---|
Dim instance As CommandBinding Dim handler As CanExecuteRoutedEventHandler AddHandler instance.CanExecute, handler | |
| C# | |
|---|---|
public event CanExecuteRoutedEventHandler CanExecute | |
| Delphi | |
|---|---|
public event CanExecute: CanExecuteRoutedEventHandler; | |
| JScript | |
|---|---|
In JScript, you can handle the events defined by another class, but you cannot define your own. | |
| Managed Extensions for C++ | |
|---|---|
public: __event CanExecuteRoutedEventHandler* CanExecute | |
| C++/CLI | |
|---|---|
public: event CanExecuteRoutedEventHandler^ CanExecute | |
The event handler receives an argument of type CanExecuteRoutedEventArgs containing data related to this event. The following CanExecuteRoutedEventArgs properties provide information specific to this event.
| Property | Description |
|---|---|
| CanExecute | Gets or sets a value that indicates whether the RoutedCommand associated with this event can be executed on the command target. |
| Command | Gets the command associated with this event. |
| Handled (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | Gets or sets a value that indicates the present state of the event handling for a routed event as it travels the route. |
| HandledBy (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | |
| IsHandledByPrimitive (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | |
| OriginalSource (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | |
| Parameter | Gets the command specific data. |
| RoutedEvent (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | |
| Source (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) | Gets or sets a reference to the object that raised the event. |
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