BindingPropertyTValue Method (String, Boolean) |
Creates a new indirect property binding using the specified propertyName.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static IndirectBinding<TValue> Property<TValue>(
string propertyName,
bool ignoreCase
)
Public Shared Function Property(Of TValue) (
propertyName As String,
ignoreCase As Boolean
) As IndirectBinding(Of TValue)
static member Property :
propertyName : string *
ignoreCase : bool -> IndirectBinding<'TValue>
Parameters
- propertyName
- Type: SystemString
Name of the property to bind to. - ignoreCase
- Type: SystemBoolean
True to ignore case of the property name, false to match the property name exactly.
Type Parameters
- TValue
- The type of the property.
Return Value
Type:
IndirectBindingTValue[Missing <returns> documentation for "M:Eto.Forms.Binding.Property``1(System.String,System.Boolean)"]
Remarks
This supports single and multiple levels of property accessors in the model.
Examples
Use this like so:
public class MyChild { public SomeChildProperty { get; set; } }
public class MyModel {
public ChildObject { get; set; }
public int IntProperty { get; set; }
}
Binding.Property("IntProperty");
Binding.Property("ChildObject.SomeChildProperty");
See Also