Summary
A timer that uses a
Dispatcher
to fire at a specified interval.
- Namespace
- Avalonia
.Threading - Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["DispatcherTimer"]
class Type type-node
Syntax
public class DispatcherTimer
Constructors
Name | Summary |
---|---|
DispatcherTimer |
Initializes a new instance of the DispatcherTimer class.
|
DispatcherTimer |
Initializes a new instance of the DispatcherTimer class.
|
DispatcherTimer |
Initializes a new instance of the DispatcherTimer class.
|
Events
Name | Type | Summary |
---|---|---|
Tick | EventHandler |
Raised when the timer ticks.
|
Properties
Methods
Name | Value | Summary |
---|---|---|
~DispatcherTimer |
void |
Finalizes an instance of the
DispatcherTimer class.
|
Run |
IDisposable |
Starts a new timer.
static
|
RunOnce |
IDisposable |
Runs a method once, after the specified interval.
static
|
Start |
void |
Starts the timer.
|
Stop |
void |
Stops the timer.
|