title: Automatically next line in a label if a string is too long in XAML
body: <p>I have a label that is binded to something. I want the label to expand in width and height if the string is too long, so that it fits on screen.</p>
  
  <p>I had this: </p>
  
  <pre><code>&lt;StackPanel Orientation="Horizontal" Margin="0,0,0,200" Height="50" Width="900"&gt;
       &lt;Label HorizontalContentAlignment="Left" VerticalAlignment="Center" Padding="5" FontSize="24" Content="Instruction: " Width="290" /&gt;
       &lt;TextBlock HorizontalAlignment="Center" TextWrapping="Wrap" VerticalAlignment="Top" FontSize="25" Text="{Binding InstructionLabel}" Width="auto" Height="auto"  /&gt;
  &lt;/StackPanel&gt;
  </code></pre>
  
  <p>Notice that I tried using a TextBlock instead of a Label. This didn't work tough, so I tried:</p>
  
  <pre><code>&lt;Label HorizontalAlignment="Center" VerticalAlignment="Top" FontSize="25"  Width="auto" Height="auto"&gt;
        &lt;AccessText TextWrapping="WrapWithOverflow" Text="{Binding InstructionLabel}"/&gt;
  &lt;/Label&gt;
  </code></pre>
  
  <p>But this doesn't work either.</p>
  
  <p>The View is now like this:</p>
  
  <p><a href="https://i.stack.imgur.com/U9Ka8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/U9Ka8.png" alt="enter image description here"></a></p>