如何在Windows Phone 7中隐藏虚拟键盘 [英] how to hide virtual keyboard in windows phone 7

查看:113
本文介绍了如何在Windows Phone 7中隐藏虚拟键盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

private void password_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
{
    if (e.Key == Key.Enter)
    {
        this.Focus();
    }
}



这是我使用过的代码,但仍然无法正常工作.



this is the code which i have used but still its not working

推荐答案

private void password_KeyUp(object sender, System.Windows.Input.KeyEventArgs e)
{
    if (e.Key == Key.Enter)
    {
        //you can set focus of non textbox control like button, lable or other
    }
}


这篇关于如何在Windows Phone 7中隐藏虚拟键盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆