How to restrict size of a TextBox in WPF
The IsReadOnly property of the TextBox sets the text box read only. By default, it is false. IsReadOnly="True" The MaxLength property of the TextBox sets the number of characters allowed to input in a text box. MaxLength="250"
IsReadOnly="True"
The MaxLength property of the TextBox sets the number of characters allowed to input in a text box.
MaxLength="250"