【发布时间】:2012-05-01 20:48:00
【问题描述】:
我在应用中有一个文本框:
<TextBox AcceptsReturn="True" Name="MessageText" InputScope="Text" />
下面的代码连接到一个按钮:
private void SendButton_Click(object sender, EventArgs e) {
// lots of code...
MessageText.Text = "";
}
按下按钮时,TextBox 被正确清除,但软键盘的自动更正建议却没有,就好像在清除之前输入到文本框中的最后一个字仍然存在。
如果键盘关闭然后再次打开,建议工作正常。
解决这个问题的正确方法是什么?
【问题讨论】:
标签: silverlight textbox windows-phone autocorrect