Methods
GetValue
#Gets the value from the specified object using this binding
Remarks: When values are needed from this binding, this method will be called.
Parameters:
| dataItem (object) | object to retrieve the value from |
Returns: value from the specified object
SetValue
#Sets the specified value to an object using this binding
Remarks: This is called to set the value to the object.
Parameters:
| 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.
Remarks: This typically will unregister any event handlers to properties so that the controls can be garbage collected.
Update
Updates the binding from the source to the destination
Remarks: Typically the source would be your custom class and the destination would be a UI control, but this is not always the case.
Parameters:
| mode (BindingUpdateMode = BindingUpdateMode.Source) | Direction of the update |