I have an animation that writes lines of text in a text box, but when it reaches the end of the text box, the words pop up to the next line in the middle of the animation.
What I want to achieve is that the word skips to the next line before it starts writing on the text box if it does not fit in the remaining space.
The process that I am using for that animation is simply a timer that is placing the next character of the position of the chain.
The second requirement is that the animation identify if the next word to write fits in the visible area of the text box (without producing a scroll bar) and stops if it is not.
This I am doing in c # in WPF