Click or drag to resize

RelayValueCommand<TParameter, TValue> Class

Inheritance Hierarchy
System.Object
  Eto.Forms.RelayCommand<TParameter>
    Eto.Forms.RelayValueCommand<TParameter, TValue>
      Eto.Forms.RelayValueCommand<TValue>

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class RelayValueCommand<TParameter, TValue> : RelayCommand<TParameter>, 
	IValueCommand<TValue>, ICommand

Type Parameters

TParameter

[Missing <typeparam name="TParameter"/> documentation for "T:Eto.Forms.RelayValueCommand`2"]

TValue

[Missing <typeparam name="TValue"/> documentation for "T:Eto.Forms.RelayValueCommand`2"]

The RelayValueCommand<TParameter, TValue> type exposes the following members.

Constructors
  NameDescription
Public methodRelayValueCommand<TParameter, TValue>
Initializes a new instance of the RelayValueCommand<TParameter, TValue> class.
Top
Methods
  NameDescription
Public methodGetValue
Gets the value.
Protected methodOnValueChanged
Raises the ValueChanged event.
Public methodSetValue
Sets the value.
Public methodUpdateValue
Signals that the value has been updated and the delegate to get the value should be called.
Top
Events
  NameDescription
Public eventValueChanged
Event to signal to the control/widget that the value has been changed.
Top
Remarks
This can be used to delegate the getting/setting of the value to separate methods. Call UpdateValue() to signal that the value has changed.
See Also