Created
December 13, 2020 13:49
-
-
Save MartinZikmund/495e08286c368a9d47825e82fa25dca7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private readonly DispatcherTimer _timer = new DispatcherTimer() | |
{ | |
Interval = TimeSpan.FromSeconds(1) | |
}; | |
private void AutoPlayToggled() | |
{ | |
if (AutoPlayToggleSwitch.IsOn) | |
{ | |
_timer.Start(); | |
} | |
else | |
{ | |
_timer.Stop(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment