protect ResetScrensaverTimeout
@@ -116,12 +116,21 @@ namespace IoTCoreDefaultApp
// Resets the timer and starts over.
private static void ResetScreensaverTimeout()
+ {
+ if (timeoutTimer != null)
{
timeoutTimer.Stop();
timeoutTimer.Start();
+ }
+ if (Window.Current != null && Window.Current.CoreWindow != null)
+ {
Window.Current.CoreWindow.PointerCursor = new CoreCursor(CoreCursorType.Arrow, 1);
+ }
+ if (screensaverContainer != null)
+ {
screensaverContainer.IsOpen = false;
}
+ }
private DispatcherTimer moveTimer;
private Random randomizer = new Random();
