BindableBinding<T, TValue>.BindDataContext Method (String, DualBindingMode) |
Binds to the specified propertyName of the current data context.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntaxpublic DualBinding<TValue> BindDataContext(
string propertyName,
DualBindingMode mode = DualBindingMode.TwoWay
)
Public Function BindDataContext (
propertyName As String,
Optional mode As DualBindingMode = DualBindingMode.TwoWay
) As DualBinding(Of TValue)
member BindDataContext :
propertyName : string *
?mode : DualBindingMode
(* Defaults:
let _mode = defaultArg mode DualBindingMode.TwoWay
*)
-> DualBinding<'TValue>
Parameters
- propertyName
- Type: System.String
Name of the property on the data context to bind to. - mode (Optional)
- Type: Eto.Forms.DualBindingMode
Direction of the binding.
Return Value
Type:
DualBinding<TValue>The binding between the data context and this binding.
Remarks
See Also