Search code examples
c#wpftextbox

How to find caret position of textbox in wpf


How to find caret position of textbox in WPF. I'm open to your ideas, because textbox haven't caret position. Is there a way to do this ?


Solution

  • int caretPostion = myTextBox.CaretIndex;