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)
- C#
- VB
- F#
public DispatcherTimer(
TimeSpan interval,
DispatcherPriority priority,
EventHandler callback
)
Public Sub New (
interval As TimeSpan,
priority As DispatcherPriority,
callback As EventHandler
)
new :
interval : TimeSpan *
priority : DispatcherPriority *
callback : EventHandler -> DispatcherTimer
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