IndirectBindingTAfterDelay Method (Double, 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(
double delay,
bool reset = false
)
Public Function AfterDelay (
delay As Double,
Optional reset As Boolean = false
) As IndirectBinding(Of T)
member AfterDelay :
delay : float *
?reset : bool
(* Defaults:
let _reset = defaultArg reset false
*)
-> IndirectBinding<'T>
Parameters
- delay
- Type: SystemDouble
The delay, in seconds 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:
IndirectBindingTA 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