DeferredUIAction

Ecng.Xaml

Executes an action on the UI thread no more frequently than a specified interval, with optional extra delay.

Construtores

DeferredUIAction(Action, TimeSpan, TimeSpan?)

Initializes a new instance of the DeferredUIAction class.

action
The action to execute.
minInterval
The minimum time between consecutive executions.
delayBy
Optional additional delay applied from the last request; must be less than or equal to .

Propriedades

IsEnabled : bool

Gets or sets a value indicating whether execution is enabled.

Métodos

Execute()

Requests execution of the action honoring throttling constraints; the action will run on the UI thread.