ComponentOne Basic Library for WPF and Silverlight
CanExecute Method (C1Command)


C1.Silverlight Namespace > C1Command Class : CanExecute Method
A user defined data type.
The command target.
Determines whether this C1Command can execute in its current state.
Syntax
'Declaration
 
Public Function CanExecute( _
   ByVal parameter As System.Object, _
   ByVal target As System.Windows.UIElement _
) As System.Boolean
'Usage
 
Dim instance As C1Command
Dim parameter As System.Object
Dim target As System.Windows.UIElement
Dim value As System.Boolean
 
value = instance.CanExecute(parameter, target)
public System.bool CanExecute( 
   System.object parameter,
   System.Windows.UIElement target
)

Parameters

parameter
A user defined data type.
target
The command target.

Return Value

True if the command can execute on the current command target; otherwise, False.
See Also

Reference

C1Command Class
C1Command Members