![Avatar](https://secure.gravatar.com/avatar/a9c2c34ee882904c98e64f541ed3d006.jpg?s=64&d=identicon&r=g)
I have a WPF application which uses Syntax Editor on demand. To achieve this, on some key event I create an instance of Syntax Editor and append it to children of a grid. Immediately I call editor.Focus() or editor.ActiveView.Focus(). In both scenarios the editor is getting focused but editor is not listening key strokes and caret is invisible.
How can I dynamically set keyboard focus to syntax editor and continue to edit without additional mouse clicks?
Thanks.