public class DelegateCommand<T> : ICommand
Public Class DelegateCommand(Of T) Implements ICommand
Thetype exposes the following members.
Initializes a new instance of theclass. No callback is initially set, so they must be set via the property setters. This usage generates easy readable code even if the delegates are inlined.
Initializes a new instance of theclass with the execute callback. This version generates more compact code; not recommended for in-line delegates.
Initializes a new instance of theclass.
Gets or sets the predicate to handle the ICommand.CanExecute method. If unset, ICommand.CanExecute will always return true if ExecuteCallback is set. [CanBeNull]
Gets or sets the action to handle the ICommand.Execute method. If unset, ICommand.CanExecute will always return false. [CanBeNull]
Defines the method that determines whether the command can execute in its current state.
Defines the method to be called when the command is invoked.
Occurs when changes occur that affect whether or not the command should execute.
Performs a cast from object to T, avoiding possible null violations if T is a value type. [CanBeNull](Defined by ObjectExtensions.)