IValueCommand<T>
References- RelayValueCommand<TParameter, TValue>
- RelayValueCommand<TValue>
- ValueCommand<T>
Interface for a command that can provide a value
Remarks: Some controls can provide a value, which can be difficult to get via the command when the value changes. This inteface allows you to extend your command to allow getting and setting a value of any type and have an event when the value changes programatically.
Type parameters:
| T |
See Also: ValueCommand<T>
Methods
GetValue
#Gets the current value in the command.
Remarks: This is typically called by the control when the ValueChanged event is raised.
Parameters:
| parameter (object) | CommandParameter from the control/widget. |
Returns: The value.
Events
ValueChanged
#Event to signal to the control/widget that the value has been changed.
Remarks: Controls should call GetValue(object) when this is raised so that they can set the state of the control to match the value provided.