Guest User

Untitled

a guest
Aug 27th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. idle state detection silverlight 4 application
  2. Application.Current.RootVisual.MouseMove += new MouseEventHandler(RootVisual_MouseMove);
  3. Application.Current.RootVisual.KeyDown += new KeyEventHandler(RootVisual_KeyDown);
  4.  
  5. private void RootVisual_KeyDown(object sender, KeyEventArgs e)
  6. {
  7. idle = false;
  8. }
  9.  
  10. private void RootVisual_MouseMove(object sender, MouseEventArgs e)
  11. {
  12. idle = false;
  13. }
Add Comment
Please, Sign In to add comment