开发者

WebBrowser control mouse events under Windows Phone 7

On Windows Ph开发者_如何学JAVAone 7, do the WebBrowser control mouse events (e.g. MouseMove, MouseEnter) never fire? I've set breakpoints and they never hit. Is there a way to know when the user interacts with the control?

I'm trying to do my own idle detection so the phone doesn't lock while the user is reading on a specific view. However, the main part of that view is a WebBrowser control.


The phone doesn't have a mouse!
It uses touch/tap events and so these (mouse related) events have no meaning on the phone.

If you must do this, try using the Manipulation events instead.


Agree with Derek here. If you are just looking to make sure that the phone does not go into lock mode while the user is reading something in your app, the following should work:

PhoneApplicationService.Current.UserIdleDetectionMode = IdleDetectionMode.Disabled;

Hope this helps!

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜