javascript - Detect Idle Silverlight Application -


What is the easiest way to locate a user in Silverlight? I.e. no mouse input and keyboard input for the duration of time.

I tried monitoring the focus event of mouse events, keyboard events and root visuals but it does not look good enough, for example, a popup window may be open and these events will not reach the original view.

Probably javascript solution?

And then there is another problem. When the app becomes inactive, I would like to look it brown (like hairdressing behavior). And I would like to reveal it like this, even if there is an open baby window or a simple popup at the moment.

Are you sure the hair window is not bubble? This is a ruckus ... it has not been realized.

If not, just create a contract:

  YelAct Activity: INotifyPropertyChanged void Touch (); Date Time Last Activity {Received; Private set; }  

Then you can use any enclosed behavior, base class or any other mechanism to record major events on your thoughts. They all say "touch", when removed, and your timer will inspect the final activity to determine it. Maybe you can do something with automation partners, be careful in this.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -