Intersoft ClientUI Documentation
PreviewCanExecute Event



Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the current command target.
Syntax
Public Event PreviewCanExecute As CanExecuteRoutedEventHandler
Dim instance As CommandBinding
Dim handler As CanExecuteRoutedEventHandler
 
AddHandler instance.PreviewCanExecute, handler
public event CanExecuteRoutedEventHandler PreviewCanExecute
public:
event CanExecuteRoutedEventHandler^ PreviewCanExecute
Event Data

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.

PropertyDescription
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)Gets or sets the source object that handles this event.
IsHandledByPrimitive (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Determines whether this event is handled internally by control infrastructure.
OriginalSource (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets the original reporting source as determined by pure hit testing, before any possible Source adjustment by a parent class.
Parameter Gets the command specific data.
RoutedEvent (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs)Gets or sets the RoutedEvent associated with this RoutedEventArgs instance.
Source (Inherited from Intersoft.Client.Framework.ISRoutedEventArgs) Gets or sets a reference to the object that raised the event.
Requirements

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

See Also

Reference

CommandBinding Class
CommandBinding Members

Send Feedback