IIndirectBinding<T>

References
public interface IIndirectBinding<T> : IBinding
Base interface for an indirect binding.
Remarks: An indirect binding is passed the data item to get/set values on the object. This is used for things like the Grid, ListBox, etc when binding to values for each item in the data store.
T

Methods

GetValue

#
T GetValue(object dataItem)
Gets the value from the specified object using this binding
Remarks: When values are needed from this binding, this method will be called.
dataItem (object)object to retrieve the value from
value from the specified object

SetValue

#
void SetValue(object dataItem, T value)
Sets the specified value to an object using this binding
Remarks: This is called to set the value to the object.
dataItem (object)object to set the value to
value (T)value to set to the object

Unbind

void Unbind()
Unbind this instance from its parent.
inherited fromIBinding
Remarks: This typically will unregister any event handlers to properties so that the controls can be garbage collected.

Update

void Update(BindingUpdateMode mode = BindingUpdateMode.Source)
Updates the binding from the source to the destination
inherited fromIBinding
Remarks: Typically the source would be your custom class and the destination would be a UI control, but this is not always the case.
mode (BindingUpdateMode = BindingUpdateMode.Source)Direction of the update