Gets or sets the period of time between timer ticks.
Assembly: WindowsBase (in WindowsBase.dll)
Timers are not guaranteed to execute exactly when the time interval occurs, but they are guaranteed to not execute before the time interval occurs. This is because DispatcherTimer operations are placed on the Dispatcher queue like other operations. When the DispatcherTimer operation executes is dependent on the other jobs in the queue and their priorities.
The following example creates a DispatcherTimer. A new DispatcherTimer object named dispatcherTimer is created. The event handler dispatcherTimer_Tick is added to the Tick event. The is set to 1 second using a TimeSpan object.
Available since 3.0
Available since 2.0
Windows Phone Silverlight
Available since 7.0