[]
        
(Showing Draft Content)

C1.WinUI.Core.DelegateCommand.-ctor

DelegateCommand Constructor

DelegateCommand(Action<object>)

Initializes a new instance of the DelegateCommand class.

Declaration
public DelegateCommand(Action<object> execute)
Parameters
Type Name Description
Action<object> execute

The execute delegate.

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

Initializes a new instance of the DelegateCommand class.

Declaration
public DelegateCommand(Action<object> execute, Predicate<object> canExecute)
Parameters
Type Name Description
Action<object> execute

The execute delegate.

Predicate<object> canExecute

The can execute delegate.