Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / CommandBinding Class / CanExecute Event

In This Topic
    CanExecute Event
    In This Topic
    Occurs when the command associated with this CommandBinding initiates a check to determine whether the command can be executed on the command target.
    Syntax
    'Declaration
     
    
    Public Event CanExecute As CanExecuteRoutedEventHandler
    public event CanExecuteRoutedEventHandler CanExecute
    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
    Gets or sets a value that indicates whether the System.Windows.Input.ICommand associated with this event can be executed on the command target.  
    Gets the command associated with this event.  
    Determines whether the input event that invoked the command should continue to route through the element tree.  
    Gets the input event name associated with this CanExecuteRoutedEventArgs instance. (Inherited from C1.Silverlight.C1RoutedEventArgs)
    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)
    Gets the original reporting source as determined by pure hit testing. (Inherited from C1.Silverlight.C1RoutedEventArgs)
    Gets the command specific data.  
    See Also