Click or drag to resize

IndirectBindingTAfterDelay Method (TimeSpan, Boolean)

Specifies that the binding should only respond to change events after a delay.

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public IndirectBinding<T> AfterDelay(
	TimeSpan delay,
	bool reset = false
)

Parameters

delay
Type: SystemTimeSpan
The delay time span to wait after the value has changed before updating the binding.
reset (Optional)
Type: SystemBoolean
true to reset the delay every time the event is fired, false to trigger the change at least by the delay interval since the last time it was triggered

Return Value

Type: IndirectBindingT
A binding that will delay the change event
Remarks
This is useful if the property/delegate that is bound is expensive to retrieve the new value, for example to dynamically generate a bitmap based on the state of the model, etc. The reset boolean allows you to ensure that the binding is updated periodically when false (default), or true to wait for the delay period after the last change event.
See Also