Search code examples
c#wpftextboxword-wrap

Animate height change of TextBox with (TextWrapping=Wrap)


How could I animate the Height change of a TextBox with the TextWrapping property set to Wrap?

Basically, I'd like to animate the change of height that occurs when writing text and the text overflows on a new line.

And the same for the reverse scenario.


Solution

  • I finally created my own control to do this. It's posted on CodeProject here.

    Thanks to Peter Duniho for the idea.