Need to make a new WPF control and give the Caret to it.
In WINFORMS or previos Windows UI it was easy using the WIN API Caret functions, but now in WPF we don’t have hwnd for each control so… is there a way to do it?
Need to make a new WPF control and give the Caret to it. In
Share
In WPF, the caret is actually CaretElement, an internal FrameworkElement used for rendering selection blocks and the caret.
If you do not inherit from some sort of control which already offers caret support and try to manipulate it, sadly, you could be facing the need to implement it from scratch.
EDIT
The CaretElement is internal to the framework and yes, not documented.
It is mentioned here, for example.
A closed source custom implementation exists in a commercial package.