Click or drag to resize

ObjectBindingT, TValue Class

Binding for a particular object to get/set values from/to
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class ObjectBinding<T, TValue> : DirectBinding<TValue>

Type Parameters

T
The type of object to bind to.
TValue
The type of value for the binding.

The ObjectBindingT, TValue type exposes the following members.

Constructors
  NameDescription
Public methodObjectBindingT, TValue(T, IndirectBindingTValue)
Initializes a new instance of the ObjectBinding with the specified object and binding to get/set values with
Public methodObjectBindingT, TValue(T, String)
Public methodObjectBindingT, TValue(T, FuncT, TValue, ActionT, TValue, ActionT, EventHandlerEventArgs, ActionT, EventHandlerEventArgs)
Initializes a new instance of the ObjectBindingT, TValue class.
Top
Properties
  NameDescription
Public propertyDataItem
Gets the object to get/set the values using the InnerBinding
Public propertyDataValue
Gets or sets the value of this binding on the bound object
(Overrides DirectBindingTDataValue.)
Public propertyGettingNullValue
Gets or sets the default value to use when getting the value for this binding when the DataItem or property value is null
Public propertyInnerBinding
Gets the binding used to get/set the values from the DataItem
Public propertySettingNullValue
Gets or sets the default value to use when setting the value for this binding when input value is null
Top
Methods
  NameDescription
Public methodBind(DirectBindingTValue, DualBindingMode)
Creates a new dual binding between the specified sourceBinding and this binding.
Public methodBind(Object, String, DualBindingMode)
Creates a binding to the propertyName of the specified objectValue.
Public methodBind(FuncTValue, ActionTValue, ActionEventHandlerEventArgs, ActionEventHandlerEventArgs, DualBindingMode)
Public methodBindTObject(TObject, IndirectBindingTValue, DualBindingMode)
Creates a new dual binding between the specified objectBinding and this binding.
Public methodBindTObject(TObject, ExpressionFuncTObject, TValue, DualBindingMode)
Creates a binding to the specified objectValue with the specified propertyExpression.
Protected methodHandleEvent
Hooks up the late bound events for this object
(Overrides BindingHandleEvent(String).)
Protected methodRemoveEvent
Removes the late bound events for this object
(Overrides BindingRemoveEvent(String).)
Public methodToString
Returns a String that represents the current ObjectBindingT, TValue.
(Overrides ObjectToString.)
Public methodUnbind
Unbinds this binding
(Overrides BindingUnbind.)
Top
Remarks
See Also