开发者

How to determine the last time a user input was received in Silverlight 3

开发者 https://www.devze.com 2022-12-25 12:53 出处:网络
I have a Silverlight 3 application, and in a method, I want to determin开发者_如何学Goe when the last time that the application received user input was. Is there an easy way to detect this?I doubt the

I have a Silverlight 3 application, and in a method, I want to determin开发者_如何学Goe when the last time that the application received user input was. Is there an easy way to detect this?


I doubt there is framework support for such a value, but you should be able to roll your own easily enough by monitoring key, mouse and other input events and setting a timestamp value accordingly. You could even persist this in isolated storage to carry the value across sessions (provided the user has not disabled isolated storage of course).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号