Click or drag to resize

RelayCommandT Class

A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute(Object) method is . This class allows you to accept command parameters in the Execute(Object) and CanExecute(Object) callback methods.
Inheritance Hierarchy
SystemObject
  Enkoni.Framework.UI.MvvmRelayCommandT

Namespace:  Enkoni.Framework.UI.Mvvm
Assembly:  Enkoni.Framework.UI (in Enkoni.Framework.UI.dll) Version: 1.3.0.1
Syntax
public class RelayCommand<T> : ICommand

Type Parameters

T
The type of command parameter that is handled by this command.

The RelayCommandT type exposes the following members.

Constructors
Methods
  NameDescription
Public methodCanExecute
Determines if the command can execute in its current state.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodExecute
Executes the action behind this command.
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRaiseCanExecuteChanged
Raises the CanExecuteChanged event on the UI thread.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventCanExecuteChanged
Occurs when changes occur that affect whether the command should execute.
Top
See Also