c# - Close keyboard on tapping on Enter -


i use toolkit windows phone 8 , have page autocompletebox.

now want close keyboard if user writes autocompletebox without selecting present item (meens user typed in different text) , commits text "return".

how can done?

you this,

<autocompletebox name="input" keyup="input_keyup" fontsize="40">         <autocompletebox .inputscope>             <inputscope>                 <inputscopename />             </inputscope>          </autocompletebox .inputscope>   </autocompletebox > 

and on event,

private void input_keyup(object sender, keyeventargs e) {     if (e.key == key.enter)     {         this.focus();     } } 

read whole article here : dismiss sip (keyboard) in wp8


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -