Tagged with webbrowser

Derek Lakin

Disabling Touch on a WebBrowser control

If you’re presenting content to the user with a WebBrowser control, but it’s not meant to be interacted with, then you will probably want to disable touch input to prevent the user from scrolling or zooming. Although setting IsEnabled or IsHitTestVisible to False can give you want you want, it’s also likely to mess with the appearance (a grey overlay). So, to work round this, use CSS in the source HTML like ...

featured touch webbrowser wpdev

Derek Lakin

Creating Copyable Read-Only Text

Ignoring any debates or discussions about when it’s going to arrive if you haven’t got it already, but the recently-released update for Windows Phone 7 (WP7) code-named NoDo (apparently short for No Donuts) brought the much discussed copy and paste feature. How Does it Work? The copy and paste feature has been available in the developer tools since December 2010, so we already know that the copy and paste feature works in the ...

code copy nodo passwordbox paste textbox styles webbrowser