Click or drag to resize
RelayCommand Class
A command whose sole purpose is to relay its functionality to other objects by invoking delegates. The default return value for the CanExecute method is 'true'. RaiseCanExecuteChanged needs to be called whenever CanExecute(Object) is expected to return a different value.
Inheritance Hierarchy
SystemObject
  foodez.CommonRelayCommand

Namespace: foodez.Common
Assembly: foodez.WindowsPhone (in foodez.WindowsPhone.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class RelayCommand : ICommand

The RelayCommand type exposes the following members.

Constructors
Methods
  NameDescription
Public methodCanExecute
Determines whether this RelayCommand 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 RelayCommand on the current command target.
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 the default hash function.
(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
Method used to raise the CanExecuteChanged event to indicate that the return value of the CanExecute(Object) method has changed.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventCanExecuteChanged
Raised when RaiseCanExecuteChanged is called.
Top
See Also