C1.Silverlight Namespace > CommandBinding Class : PreviewCanExecute Event |
'Declaration
Public Event PreviewCanExecute As CanExecuteRoutedEventHandler
'Usage
Dim instance As CommandBinding Dim handler As CanExecuteRoutedEventHandler AddHandler instance.PreviewCanExecute, handler
public event CanExecuteRoutedEventHandler PreviewCanExecute
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 System.Windows.Input.ICommand associated with this event can be executed on the command target. |
Command | Gets the command associated with this event. |
ContinueRouting | Determines whether the input event that invoked the command should continue to route through the element tree. |
EventName | Gets the input event name associated with this CanExecuteRoutedEventArgs instance. (Inherited from C1.Silverlight.C1RoutedEventArgs) |
Handled | Gets or sets a value that indicates the present state of the event handling for event as it travels the route. (Inherited from C1.Silverlight.C1RoutedEventArgs) |
OriginalSource | Gets the original reporting source as determined by pure hit testing. (Inherited from C1.Silverlight.C1RoutedEventArgs) |
Parameter | Gets the command specific data. |
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