DispatcherTimerExtensions Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |