mikelberger
mikelberger

Reputation: 33

WebBrowser control mouse events under Windows Phone 7

On Windows Phone 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.

Upvotes: 0

Views: 961

Answers (2)

Sam Basu
Sam Basu

Reputation: 986

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!

Upvotes: 0

Matt Lacey
Matt Lacey

Reputation: 65556

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.

Upvotes: 1

Related Questions