[]
        
(Showing Draft Content)

C1.WPF.C1DelegateCommand

C1DelegateCommand Class

Utility class that helps creating an ICommand from the delegates execute and canExecute.

Inheritance
C1DelegateCommand
Implements
Namespace: C1.WPF
Assembly: C1.WPF.4.6.2.dll
Syntax
public class C1DelegateCommand : ICommand

Constructors

Name Description
C1DelegateCommand(Action<object>)

Initializes a new instance of the C1DelegateCommand class.

C1DelegateCommand(Action<object>, Predicate<object>)

Initializes a new instance of the C1DelegateCommand class.

Methods

Name Description
CanExecute(object)

Defines the method that determines whether the command can execute in its current state.

Execute(object)

Defines the method to be called when the command is invoked.

RaiseCanExecuteChanged()

Raises the event.

Events

Name Description
CanExecuteChanged

Occurs when changes occur that affect whether or not the command should execute.