DelegateCommand<T> Members
A command that calls your parameterized delegates when Execute and CanExecute logic is invoked on the command.Constructors
Name | Description |
---|---|
DelegateCommand(Action<T>, Boolean) | Initializes a new instance of the DelegateCommand<T> that can always be executed. |
DelegateCommand(Action<T>, Func<T, Boolean>, Nullable<Boolean>) | Initializes a new instance of the DelegateCommand<T> that can always be executed. |
DelegateCommand(Action<T>) | Initializes a new instance of the DelegateCommand<T> that can always be executed. |
Methods
Name | Description |
---|---|
CanExecute(T) | Returns whether the command can be executed in its current state. Inherited from CommandBase<T>. |
Equals(Object, Object) static | Determines whether the specified object instances are considered equal. Inherited from Object. |
Equals(Object) | Determines whether the specified object is equal to the current object. Inherited from Object. |
Execute(T) | Defines the method to be called when the command is invoked. |
GetHashCode() | Serves as the default hash function. Inherited from Object. |
GetType() | Gets the Type of the current instance. Inherited from Object. |
MemberwiseClone() protected | Creates a shallow copy of the current Object. Inherited from Object. |
RaiseCanExecuteChanged() | Raises the CanExecuteChanged event. You can use this method to notify a visual element about a command’s CanExecute(T) state changes. Inherited from CommandBase<T>. |
ReferenceEquals(Object, Object) static | Determines whether the specified Object instances are the same instance. Inherited from Object. |
ToString() | Returns a string that represents the current object. Inherited from Object. |
Events
Name | Description |
---|---|
CanExecuteChanged | Occurs when changes occur that affect whether or not the command should execute. Inherited from CommandBase<T>. |
See Also