Class DelegateCommand
- Namespace
- The.Model.Editor
- Assembly
- Instagile.Model.dll
public sealed class DelegateCommand : ICommand
- Inheritance
-
DelegateCommand
- Implements
-
- Inherited Members
-
Constructors
DelegateCommand(Action)
public DelegateCommand(Action execute)
Parameters
execute Action
DelegateCommand(Action, Func<bool>?)
public DelegateCommand(Action execute, Func<bool>? canExecute)
Parameters
execute Action
canExecute Func<bool>
Methods
CanExecute(object?)
public bool CanExecute(object? parameter)
Parameters
parameter object
Returns
- bool
Execute(object?)
public void Execute(object? parameter)
Parameters
parameter object
RaiseCanExecuteChanged()
public void RaiseCanExecuteChanged()
Events
CanExecuteChanged
public event EventHandler? CanExecuteChanged
Event Type
- EventHandler