[]
        
(Showing Draft Content)

C1.WinUI.Core.DelegateCommand

DelegateCommand Class

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

Inheritance
DelegateCommand
Implements
Namespace: C1.WinUI.Core
Assembly: C1.WinUI.Core.dll
Syntax
public class DelegateCommand : ICommand

Constructors

Name Description
DelegateCommand(Action<object>)

Initializes a new instance of the DelegateCommand class.

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

Initializes a new instance of the DelegateCommand 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.