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
)
Public Function Child(Of TNewValue) (
binding As IndirectBinding(Of TNewValue)
) As IndirectBinding(Of TNewValue)
member Child :
binding : IndirectBinding<'TNewValue> -> IndirectBinding<'TNewValue>
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:
IndirectBindingTNewValueThe 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