title: Stretch TextBlock to all available width
body: <p>I'm creating UWP application where one of the screens have layout like this:</p>
  
  <pre><code>&lt;ListView&gt;
      &lt;ListViewItem&gt;
          &lt;Grid&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto" /&gt;
                  &lt;ColumnDefinition Width="*" /&gt;
                  &lt;ColumnDefinition Width="Auto" /&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Ellipse
                  Width="32"
                  Height="32"
                  Margin="6"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  Fill="LightGray" /&gt;
              &lt;TextBlock
                  Grid.Column="1"
                  Margin="12,6,0,0"
                  FontSize="20"
                  Text="Here is Long Name" /&gt;
              &lt;StackPanel
                  Grid.Column="2"
                  Orientation="Horizontal"
                  HorizontalAlignment="Right"&gt;
                  &lt;Button Width="25" Height="45" BorderThickness="0"&gt;-&lt;/Button&gt;
                  &lt;TextBlock
                      Width="25"
                      Height="45"
                      Padding="0,5,0,0"
                      FontSize="24"
                      Text="0"
                      TextAlignment="Center" /&gt;
                  &lt;Button Width="30" Height="45" BorderThickness="0"&gt;+&lt;/Button&gt;
              &lt;/StackPanel&gt;
          &lt;/Grid&gt;
      &lt;/ListViewItem&gt;
      &lt;ListViewItem&gt;
          &lt;Grid&gt;
              &lt;Grid.ColumnDefinitions&gt;
                  &lt;ColumnDefinition Width="Auto" /&gt;
                  &lt;ColumnDefinition Width="*" /&gt;
                  &lt;ColumnDefinition Width="Auto" /&gt;
              &lt;/Grid.ColumnDefinitions&gt;
              &lt;Ellipse
                  Width="32"
                  Height="32"
                  Margin="6"
                  HorizontalAlignment="Center"
                  VerticalAlignment="Center"
                  Fill="LightGray" /&gt;
              &lt;TextBlock
                  Grid.Column="1"
                  Margin="12,6,0,0"
                  FontSize="20"
                  Text="Short name" /&gt;
              &lt;StackPanel
                  Grid.Column="2"
                  Orientation="Horizontal"
                  HorizontalAlignment="Right"&gt;
                  &lt;Button Width="25" Height="45" BorderThickness="0"&gt;-&lt;/Button&gt;
                  &lt;TextBlock
                      Width="25"
                      Height="45"
                      Padding="0,5,0,0"
                      FontSize="24"
                      Text="0"
                      TextAlignment="Center" /&gt;
                  &lt;Button Width="30" Height="45" BorderThickness="0"&gt;+&lt;/Button&gt;
              &lt;/StackPanel&gt;
          &lt;/Grid&gt;
      &lt;/ListViewItem&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>It looks like this (I'm not allowed to insert image): <a href="https://i.stack.imgur.com/Afvn6.png" rel="nofollow noreferrer">https://i.stack.imgur.com/Afvn6.png</a></p>
  
  <p>I want that StackPanel in last column to be on the right side, no matter how long is name. I assume this will be the case if TextBlock stretches to all available width, but it doesn't. How do I fix this?</p>