Click or drag to resize

BindableBindingT, TValueChildTNewValue Method (IndirectBindingTNewValue)

Binds to the specified child binding of this binding.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public BindableBinding<T, TNewValue> Child<TNewValue>(
	IndirectBinding<TNewValue> binding
)

Parameters

binding
Type: Eto.FormsIndirectBindingTNewValue
Binding to get the child value from this binding.

Type Parameters

TNewValue
The type of the child property value.

Return Value

Type: BindableBindingT, TNewValue
The binding to the child property accessed through the current binding.
Remarks
This can be used to bind to child objects of your view model, for example
model.SomeProperty.ChildProperty
.
Examples
Use this like so:
public class MyChild { public SomeChildProperty { get; set; } }
public class MyModel { public ChildObject { get; set; } }

var model = new MyModel();
Binding.Property(model, (MyModel m) => m.ChildObject).Child(Binding.Property("SomeChildProperty"));
See Also