Skip to main content

DispatcherTimer(TimeSpan, DispatcherPriority, EventHandler) Constructor

Creates a timer that uses the UI thread's Dispatcher2 to process the timer event at the specified priority after the specified timeout.

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public DispatcherTimer(
TimeSpan interval,
DispatcherPriority priority,
EventHandler callback
)

Parameters

  TimeSpan
The interval to tick the timer after.
  DispatcherPriority
The priority to process the timer at.
  EventHandler
The callback to call when the timer ticks.

See Also

Reference

DispatcherTimer Class
DispatcherTimer Overload
Avalonia.Threading Namespace