简体   繁体   中英

Can you declare an InputScope in a WebBrowser?

I'm aware of the property InputScope in a TextBox, but is it possible to use in a WebBrowser? I actually just want to get rid of the autosuggestions, if that is possible without changing the InputScope.

You have to set the input scope for each input in the HTML. This way the specific keyboard for each input type will be displayed.

See HTML5 Input Types .

You can visit this page to try them.

Note that this will only work with Windows Phone 8 (IE10), because IE9, the browser in Windows Phone 7, doesn't implement it.

InputScope is available in XAML through System.Windows.Input in System.Windows.dll, so anywhere you use it whether it web / desktop / WP7 / WP8, it is available. See MSDN .

Although this tutorial for inputscope is for WP7 , much of the theory applies to WP8

PS Where is your autocomplete / autosuggest code? If you post it we can possibly help you further, eg see this link for how to fiddle with autosuggest on android

EDIT: Ah in light of your comment; hopefully this answers your question in conjunction with the other answers supplied here is it possible to set inputscope from a webpage

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM