Click or drag to resize

BindableWidget Class

Base widget to support binding with the IBindable interface.
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public abstract class BindableWidget : Widget, 
	IBindable

The BindableWidget type exposes the following members.

Constructors
  NameDescription
Protected methodBindableWidget
Initializes a new instance of the BindableWidget class.
Protected methodBindableWidget(WidgetIHandler)
Initializes a new instance of the BindableWidget class with the specified platform handler.
Top
Properties
  NameDescription
Public propertyBindings
Gets the collection of bindings that are attached to this widget
Public propertyDataContext
Gets or sets the data context for this widget for binding
Public propertyParent
Gets the parent widget which this widget has been added to, if any
Public propertyParents
Gets an enumeration of all parent widgets in the heirarchy by traversing the Parent property.
Top
Methods
  NameDescription
Public methodFindParent(String)
Finds a control in the parent hierarchy with the specified id
Public methodFindParent(Type, String)
Finds a control in the parent hierarchy with the specified type and ID if specified
Public methodFindParentT(String)
Finds a control in the parent hierarchy with the specified type and ID if specified
Protected methodOnDataContextChanged
Raises the DataContextChanged event
Public methodUnbind
Unbinds any bindings in the Bindings collection and removes the bindings
Public methodUpdateBindings
Updates all bindings in this widget
Top
Events
  NameDescription
Public eventDataContextChanged
Event to handle when the DataContext has changed
Top
Extension Methods
  NameDescription
Public Extension MethodBindT(String, DirectBindingT, DualBindingMode)Overloaded.
Adds a new dual binding between the control and the specified source binding
(Defined by BindableExtensions.)
Public Extension MethodBindT(IndirectBindingT, DirectBindingT, DualBindingMode)Overloaded.
Adds a new binding to the control with a direct value binding
(Defined by BindableExtensions.)
Public Extension MethodBindT(String, Object, String, DualBindingMode)Overloaded.
Adds a new dual binding between the control and the specified object
(Defined by BindableExtensions.)
Public Extension MethodBindT(IndirectBindingT, Object, IndirectBindingT, DualBindingMode, T, T)Overloaded.
Adds a new binding to the control with an indirect binding to the provided objectValue
(Defined by BindableExtensions.)
Public Extension MethodBindDataContextT(String, String, DualBindingMode, T, T)Overloaded.
Adds a new binding with the control and the the control's current data context
(Defined by BindableExtensions.)
Public Extension MethodBindDataContextT(IndirectBindingT, IndirectBindingT, DualBindingMode, T, T)Overloaded.
Adds a new binding from the control to its data context
(Defined by BindableExtensions.)
Top
See Also