Come rendere perdere la messa a fuoco e nascondere la tastiera sullo schermo quando l'utente tocca la chiave virtuale Enter
?Come fare in modo che TextBox non si concentri?
private void TheName_KeyDown(object sender, KeyRoutedEventArgs e) {
var tb = sender as TextBox;
if (e.Key == Windows.System.VirtualKey.Enter) {
// ... tb.LooseTheFocus_PLEASE(); !???
}
}
non si può effettivamente. Devi mettere a fuoco un altro controllo. – Matthijs
Come si fa? Ho provato this.Focus (Windows.UI.Xaml.FocusState.Pointer) - ignorato. – Harry
Prova [mia soluzione] [1] su Hidding touch-tastiera su Windows 8. [1]: http://stackoverflow.com/questions/20858141/keyboard-wont-dismiss-even-after- focus-change/29124111 # 29124111 –