Table of Contents

Class DelegateCommand<T>

Namespace
The.Model.Editor
Assembly
Instagile.Model.dll
public sealed class DelegateCommand<T> : ICommand where T : class

Type Parameters

T
Inheritance
DelegateCommand<T>
Implements
Inherited Members

Constructors

DelegateCommand(Action<T>)

public DelegateCommand(Action<T> execute)

Parameters

execute Action<T>

DelegateCommand(Action<T>, Predicate<T>?)

public DelegateCommand(Action<T> execute, Predicate<T>? canExecute)

Parameters

execute Action<T>
canExecute Predicate<T>

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