DispatcherTimer Class

A timer that is integrated into the Dispatcher queues, and will be processed after a given amount of time at a specified priority.

Definition

Namespace: Avalonia.Threading
Assembly: Avalonia.Base (in Avalonia.Base.dll) Version: 11.3.999
public class DispatcherTimer
Inheritance
Object    DispatcherTimer

Properties

Dispatcher Gets the dispatcher this timer is associated with.
Interval Gets or sets the time between timer ticks.
IsEnabled Gets or sets whether the timer is running.
Tag Any data that the caller wants to pass along with the timer.

Methods

Equals(Object)Determines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Run(FuncBoolean, TimeSpan, DispatcherPriority) Starts a new timer.
RunOnce(Action, TimeSpan, DispatcherPriority) Runs a method once, after the specified interval.
Start Starts the timer.
Stop Stops the timer.
ToStringReturns a string that represents the current object.
(Inherited from Object)

Events

Tick Occurs when the specified timer interval has elapsed and the timer is enabled.

See Also