How to check if user is idle on UWP? [duplicate]
问题 This question already has an answer here : Detect if user Idle on windows universal app (1 answer) Closed 3 years ago . I wanted to make a function that would timeout and navigate to the main page if the user is idle for a certain period of time. After a little research, I found that the ThreadPoolTimer should suit my needs. Testing it I decided to use a 10 sec interval. timer =ThreadPoolTimer.CreatePeriodicTimer(Timer_Tick,TimeSpan.FromSeconds(10)); And this is where I'm at a loss. I couldn