BindingExtensionsWhenLostFocusT, TValue Method |
Causes the change event of the binding to occur only when the
LostFocus event is triggered.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public static BindableBinding<T, TValue> WhenLostFocus<T, TValue>(
this BindableBinding<T, TValue> binding
)
where T : Control
<ExtensionAttribute>
Public Shared Function WhenLostFocus(Of T As Control, TValue) (
binding As BindableBinding(Of T, TValue)
) As BindableBinding(Of T, TValue)
[<ExtensionAttribute>]
static member WhenLostFocus :
binding : BindableBinding<'T, 'TValue> -> BindableBinding<'T, 'TValue> when 'T : Control
Parameters
- binding
- Type: Eto.FormsBindableBindingT, TValue
[Missing <param name="binding"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]
Type Parameters
- T
[Missing <typeparam name="T"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]
- TValue
[Missing <typeparam name="TValue"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]
Return Value
Type:
BindableBindingT,
TValueA control binding that updates only when the control's input focus is lost.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
BindableBindingT,
TValue. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Remarks
This is useful for text-based input controls such as the
NumericStepper when a partial input can be invalid.
The binding will only be updated when the control has lost the input focus, where by default it will be updated for every
change while the user is updating the control.
See Also