What's the simplest way in Silverlight to detect the user is not active? i.e. no mouse input and keyboard input for a period of time.
I tried monitoring the mouse events, keyboard events and the focus events of the root visual but it doesn't seem enough. For example, a popup window may be open and these events won't reach the root visual.
Maybe javascript solution?
And then comes the other problem. When the application is idle I would like it to appear gray (just like ChildWindow behavior). And I would like it to appear like this even if there is an open ChildWindow or a simple Popup at the moment.