Problem:
Put the parameters for TextBox Multiline = true;
and WordWrap = true;
. Everything is fine, transfers, but I do not understand: how to find out the number of lines in which my text breaks with the specified width parameters
ps main task
When changing the text, adjust the height of the TextBox to the required dimensions.