Click or drag to resize

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
public static BindableBinding<T, TValue> WhenLostFocus<T, TValue>(
	this BindableBinding<T, TValue> binding
where T : Control


Type: Eto.FormsBindableBindingT, TValue

[Missing <param name="binding"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]

Type Parameters


[Missing <typeparam name="T"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]


[Missing <typeparam name="TValue"/> documentation for "M:Eto.Forms.BindingExtensions.WhenLostFocus``2(Eto.Forms.BindableBinding{``0,``1})"]

Return Value

Type: BindableBindingT, TValue
A 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).
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