Difficult! I forced myself to think that if the characters exceed, say, about 10, I'm going to add points to it. So I added this text event to the text box, and then made the code as follows:
private void TestTextBox_TextChanged(object sender, TextChangedEventArgs e) { string temp = TestTextBox.Text; if (temp.Length > 10) { char[] charArray=temp.ToCharArray(); temp = new string(charArray, 0, 10); temp += "..."; } TestTextBox.Text = temp; }
source share