I am currently in the process of creating a Onscreen keyboard. I am handling the button click using routedcommands. The issue is that when i click on the button in keyboard
Get the reference for the specific control(in that case TextBox). After click, in Button_Click method paste this:
Dispatcher.BeginInvoke((ThreadStart)delegate { control.Focus(); });