0

I have a simple Grid with an Image on the left side and a TextBlock on the right, each contained by a ViewBox to handle scaling. The ViewBox.Height containing the TextBlock is bound to Image.ActualHeight. Here is what I get:

What I have

But what I actually want to achieve is that TextBlock.FontSize is automatically adjusted, so that all available vertical space is used and its content wraps. So it should rather look about like that:

What I want

How can I achieve that?

Hannes
  • 273
  • 3
  • 14
  • 1
    http://stackoverflow.com/questions/17717999/textblock-text-doesnt-wrap-when-placed-inside-a-viewbox – Heena Dec 05 '14 at 11:03
  • You could also make a relation between the FontSize and image height in code behind, so it actually fits the fontsize into the block during startup – Osman Esen Dec 05 '14 at 15:02

0 Answers0