Multiline issue WPF TextBox
问题 I creating multiline TextBox with this Link its work better but if I want to set TextBox text counter label1.Content = textBox1.Text.Length; with above line work fine but problem is that when I press enter in the TextBox counter it will increase 2 characters in TextBox counter. How can I do this task please help me. Any help appreciated! 回答1: Andrey Gordeev's answer is right (+1 for him) but does not provide a direct solution for your problem. If you check the textBox1.Text string with the