In my WindowsPhone application I have a Text Box that needs to receive focus at a given time. What I've tried so far:
textBox1.Focus();
textBox1.UpdateLayout();
textBox1.Focus();
textBox1.IsTabStop = true;
textBox1.UpdateLayout();
textBox1.Focus();
textBox1.IsTabStop = true;
textBox1.Focus();
Nothing seems to work. In the Emulator, when the Focus()
method is called, the keyboard starts to rise, but then crashes back. The TextBox has IsTabStop
set to true
in the properties.
Does this help?
this.ActiveControl = textBox1;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With