Click or drag to resize

DirectBindingTChildTValue Method (IndirectBindingTValue)

Binds to the specified child binding of this binding.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public DirectBinding<TValue> Child<TValue>(
	IndirectBinding<TValue> binding
)

Parameters

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

Type Parameters

TValue
The type of the child property value.

Return Value

Type: DirectBindingTValue
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