Table of Contents

Class DispatcherTimer

Namespace
nanoFramework.UI.Threading
Assembly
nanoFramework.Graphics.dll

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

public class DispatcherTimer : IDisposable
Inheritance
DispatcherTimer
Implements
Inherited Members
Extension Methods

Constructors

DispatcherTimer()

Creates a timer that uses the current thread's Dispatcher to process the timer event

public DispatcherTimer()

DispatcherTimer(Dispatcher)

Creates a timer that uses the specified Dispatcher to process the timer event.

public DispatcherTimer(Dispatcher dispatcher)

Parameters

dispatcher Dispatcher

The dispatcher to use to process the timer.

Properties

Dispatcher

Gets the dispatcher this timer is associated with.

public Dispatcher Dispatcher { get; }

Property Value

Dispatcher

Interval

Gets or sets the time between timer ticks.

public TimeSpan Interval { get; set; }

Property Value

TimeSpan

IsEnabled

Gets or sets whether the timer is running.

public bool IsEnabled { get; set; }

Property Value

bool

Tag

Any data that the caller wants to pass along with the timer.

public object Tag { get; set; }

Property Value

object

Methods

Close()

public virtual void Close()

Dispose()

public void Dispose()

Dispose(bool)

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

Start()

Starts the timer.

public void Start()

Stop()

Stops the timer.

public void Stop()

Events

Tick

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

public event EventHandler Tick

Event Type

EventHandler