Click or drag to resize

UITimer Class

Provides a timer that executes code at a specified interval on the UI thread
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public class UITimer : Widget

The UITimer type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyInterval
Gets or sets the interval, in seconds
Public propertyStarted
Gets a value indicating whether this UITimer is started.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides WidgetGetCallback.)
Protected methodOnElapsed
Raises the Elapsed event.
Public methodStart
Starts the timer
Public methodStop
Stops a running timer
Top
Events
  NameDescription
Public eventElapsed
Occurs each time the Interval has elapsed
Top
Remarks
This provides a way to execute UI code at a specified Interval. Note that this is not a high-resolution timer, and you should avoid setting a small interval otherwise the UI may become unresponsive depending on the logic in the executed code. This typically executes the code on the UI main loop, thus the accuracy of the timer is dependent on the other UI code executing.
See Also