Text viewing in a delimited space

Posted by Maurizio Reginelli on Stack Overflow See other posts from Stack Overflow or by Maurizio Reginelli
Published on 2010-04-20T07:34:53Z Indexed on 2010/04/20 7:53 UTC
Read the original article Hit count: 349

Filed under:
|
|

I need to visualize a text into a delimited space. If I add a simple TextBlock I have a problem: when the text is longer than the available space, it is cropped at the end. I tried to insert the TextBlock inside a Viewbox: this solution works for a text longer than the available space, but increase the size of the text when it is shorter.
Is there a way to reduce the size of the text only when it is longer than the available space?

© Stack Overflow or respective owner

Related posts about wpf

Related posts about .NET