Table of Contents

Class DelegateCommand<T>

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll

Delegate command capable of taking argument. The argument type.

public class DelegateCommand<T> : ICommand

Type Parameters

T
Delegate command capable of taking argument. The argument type.
Inheritance
DelegateCommand<T>
Implements
Derived
Inherited Members
Extension Methods

Constructors

DelegateCommand(Action<T>, Func<T, bool>)

Creates a new command with conditional execution.

The execution logic. The execution status logic.
public DelegateCommand(Action<T> execute, Func<T, bool> canExecute = null)

Parameters

execute Action<T>
canExecute Func<T, 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()

Invoke CanExecuteChanged event.

public void RaiseCanExecuteChanged()

Events

CanExecuteChanged

public event EventHandler CanExecuteChanged

Event Type

EventHandler