BindingPropertyT, TValue Method (ExpressionFuncT, TValue) |
Namespace: Eto.Forms
public static IndirectBinding<TValue> Property<T, TValue>( Expression<Func<T, TValue>> propertyExpression )
[Missing <returns> documentation for "M:Eto.Forms.Binding.Property``2(System.Linq.Expressions.Expression{System.Func{``0,``1}})"]
public class MyChild { public SomeChildProperty { get; set; } } public class MyModel { public ChildObject { get; set; } public int IntProperty { get; set; } } // direct property binding Binding.Property((MyModel m) => m.IntProperty); // bind to a property of a child object of the view model Binding.Property((MyModel m) => m.ChildObject.SomeChildProperty);