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
Post a Comment