WPF TextBox selectall and show caret at the same time
问题 after a long search on the net, I hope you can help me. My Problem: I want to select the complete text in a TextBox and will show the caret (blinking cursor) after the last character. Always I have found information about one problem or information to hide the caret. The separate things are no problems but the combination of it don't work. // Set the focus to the TextBox myTextBox.Focus(); // Select the complete text, but hide the caret (blinking cursor) myTextBox.SelectAll(); // or //