When setting the SelectedPropertyItem from code how do we focus the editor and have the editor in input mode with the keyboard focus set to it?
Example:
The property item editor is a TextBox editor, and the goal is to set the SelectedPropertyItem from code and to set the keyboard focus to the TextBox editor with the carret being in the input position.
We tried:
FrameworkElement editorElement = (FrameworkElement)item.PropertyEditor;
FocusManager.SetFocusedElement(MyPropertyGrid, editorElement);
Keyboard.Focus(editorElement);
The focus is set to the selected property item but the TextBox does not show the input carret.
If we input text the TextBox is then receiving the input focus from the property grid and the carret is showing up then upon keyboard input.
For our use case that is not intuitiv, so our question is how can we set the property editor to "edit" mode to have the input carret showing as feedback that the property is now ready to receive input?
Thanks a lot.