title: Auto resizing font in WPF?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/4794355/wpf-4-grow-shrink-textblock-font-size-based-on-available-space">WPF 4: Grow/Shrink TextBlock (Font Size) based on available space</a>  </p>
  </blockquote>
  
  
  
  <p>I ma looking for a following behaviours in WPF:
  All the TextBlock in my app are shown in the 24 Font size, but if there isn't enough space I would to decrease a font size.</p>
  
  <p>I thought of two solutions, but none of them work:</p>
  
  <ol>
  <li>Put a textBox inside viewbox. Doesn't work, as all labels start to get different sizes.</li>
  <li>If that would be a button I would
  specify a MinWidth instead of Width,
  but there is no property called
  MinFontSize on the TextBlock.
  Edit:</li>
  <li>Create a custom control with property MinTextWidth (this might work)</li>
  </ol>
  
  <p>Any other solutions, which would work?</p>