DispatcherTimerExtensions Class

Definition

Set of extention methods for using Windows.UI.Xaml.DispatcherTimer.

public static class DispatcherTimerExtensions
type DispatcherTimerExtensions = class
Public Module DispatcherTimerExtensions
Inheritance
DispatcherTimerExtensions

Methods

Debounce(DispatcherTimer, Action, TimeSpan, Boolean)

Used to debounce (rate-limit) an event. The action will be postponed and executed after the interval has elapsed. At the end of the interval, the function will be called with the arguments that were passed most recently to the debounced function.

Use this method to control the timer instead of calling Start/Interval/Stop manually.

A scheduled debounce can still be stopped by calling the stop method on the timer instance.

Each timer can only have one debounced function limited at a time.

Applies to