Click or drag to resize

BindableBindingT, TValue Class

Binding object to easily bind a property of a IBindable object, such as a Control.
Inheritance Hierarchy
SystemObject
  Eto.FormsBinding
    Eto.FormsDirectBindingTValue
      Eto.FormsObjectBindingT, TValue
        Eto.FormsBindableBindingT, TValue
          Eto.FormsControlBindingT, TValue

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class BindableBinding<T, TValue> : ObjectBinding<T, TValue>
where T : IBindable

Type Parameters

T

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

TValue

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

The BindableBindingT, TValue type exposes the following members.

Constructors
  NameDescription
Public methodBindableBindingT, TValue(T, IndirectBindingTValue)
Public methodBindableBindingT, TValue(T, FuncT, TValue, ActionT, TValue, ActionT, EventHandlerEventArgs, ActionT, EventHandlerEventArgs)
Top
Methods
  NameDescription
Public methodBind
Binds the specified sourceBinding to this binding.
(Overrides ObjectBindingT, TValueBind(DirectBindingTValue, DualBindingMode).)
Public methodBindDataContext(String, DualBindingMode)
Binds to the specified propertyName of the current data context.
Public methodBindDataContext(IndirectBindingTValue, DualBindingMode, TValue, TValue)
Binds to an object's DataContext using the specified dataContextBinding.
Public methodBindDataContextTObject(ExpressionFuncTObject, TValue, DualBindingMode)
Binds to a specified property of the control's current data context.
Public methodBindDataContextTObject(FuncTObject, TValue, ActionTObject, TValue, ActionTObject, EventHandlerEventArgs, ActionTObject, EventHandlerEventArgs, DualBindingMode, TValue, TValue)
Binds to a control's DataContext using delegates to get/set the value.
Public methodCastTNewValue
Casts this binding value to another (compatible) type.
Public methodCatchException(FuncException, Boolean)
Catches any exceptions when setting the value of the binding
Public methodCatchExceptionTException(FuncTException, Boolean)
Catches any exceptions of the specified TException when setting the value of the binding.
Public methodCode exampleChildTNewValue(ExpressionFuncT, TNewValue)
Binds to the specified child property expression.
Public methodCode exampleChildTNewValue(IndirectBindingTNewValue)
Binds to the specified child binding of this binding.
Public methodConvertTNewValue
Converts this binding's value to another value using delegates.
Top
Remarks
This provides control-specific binding, such as binding to a DataContext. Any bindings created using this will also add to the Bindings collection to keep its reference.
See Also