DelegateCommand DelegateCommand DelegateCommand DelegateCommand Class

Definition

A lightweight version of DelegateCommand modeled after Prism.

public ref class DelegateCommand : System::Windows::Input::ICommand
public class DelegateCommand : System.Windows.Input.ICommand
type DelegateCommand = class
    interface ICommand
Public Class DelegateCommand
Implements ICommand
Inheritance
DelegateCommandDelegateCommandDelegateCommandDelegateCommand
Implements

Constructors

DelegateCommand(Action) DelegateCommand(Action) DelegateCommand(Action) DelegateCommand(Action)
DelegateCommand(Action<Object>) DelegateCommand(Action<Object>) DelegateCommand(Action<Object>) DelegateCommand(Action<Object>)

Initializes a new instance of the DelegateCommand class.

DelegateCommand(Action, Func<Boolean>) DelegateCommand(Action, Func<Boolean>) DelegateCommand(Action, Func<Boolean>) DelegateCommand(Action, Func<Boolean>)
DelegateCommand(Action<Object>, Predicate<Object>) DelegateCommand(Action<Object>, Predicate<Object>) DelegateCommand(Action<Object>, Predicate<Object>) DelegateCommand(Action<Object>, Predicate<Object>)

Initializes a new instance of the DelegateCommand class.

Methods

CanExecute(Object) CanExecute(Object) CanExecute(Object) CanExecute(Object)

Determines whether the command can be executed in the current state.

Execute(Object) Execute(Object) Execute(Object) Execute(Object)

Executes the command.

RaiseCanExecuteChanged() RaiseCanExecuteChanged() RaiseCanExecuteChanged() RaiseCanExecuteChanged()

Event called when the current command's ability to execute may have changed.

Events

CanExecuteChanged CanExecuteChanged CanExecuteChanged CanExecuteChanged

Applies to