Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- idle state detection silverlight 4 application
- Application.Current.RootVisual.MouseMove += new MouseEventHandler(RootVisual_MouseMove);
- Application.Current.RootVisual.KeyDown += new KeyEventHandler(RootVisual_KeyDown);
- private void RootVisual_KeyDown(object sender, KeyEventArgs e)
- {
- idle = false;
- }
- private void RootVisual_MouseMove(object sender, MouseEventArgs e)
- {
- idle = false;
- }
Add Comment
Please, Sign In to add comment