Initializes a new instance of the C1DelegateCommand class.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public C1DelegateCommand(
	Action<Object> execute,
	Predicate<Object> canExecute
)
Visual Basic
Public Sub New ( _
	execute As Action(Of Object), _
	canExecute As Predicate(Of Object) _
)

Parameters

execute
Type: System..::..Action<(Of <(<'Object>)>)>
The execute delegate.
canExecute
Type: System..::..Predicate<(Of <(<'Object>)>)>
The can execute delegate.

See Also