我希望TextBox能在页面显示时获得焦点。我写道:
protected override void onManipulationStarted(ManipulationStartedArgs e)
{
textBox1.Focus();
base.onManipulationStarted( e);
}但什么都没发生
欢迎任何评论
发布于 2012-02-01 09:15:08
如果要在页面加载时设置焦点,则必须在页面的加载事件上添加事件处理程序。
编写
textBox1.Focus();
page.xaml.cs中加载的事件处理程序中的代码
https://stackoverflow.com/questions/9090060
复制相似问题