Click or drag to resize

IndirectBindingTChildTNewValue 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 IndirectBinding<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: IndirectBindingTNewValue
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; } }

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