title: ListView with column on the right on a Windows Phone 8.1 app
body: <p>i have a problem with a ListView and i have no idea how to solve it without hardcoding a width:</p>
  
  <p>I have this listView:</p>
  
  <pre><code>&lt;ListView 
          Name="lstStates"
          CommonNavigationTransitionInfo.IsStaggerElement="True" 
          ContinuumNavigationTransitionInfo.ExitElementContainer="True" 
          IsItemClickEnabled="True"
          ItemClick="lstStates_ItemClick"
          ItemsSource="{Binding States}"
          HorizontalAlignment="Stretch"
          &gt;
          &lt;ListView.ItemTemplate&gt;
              &lt;DataTemplate&gt;
                  &lt;Grid Margin="8" Background="AliceBlue" HorizontalAlignment="Stretch"&gt;
                      &lt;Grid.ColumnDefinitions&gt;
                          &lt;ColumnDefinition Width="1*" /&gt;
                          &lt;ColumnDefinition Width="auto" /&gt;
                      &lt;/Grid.ColumnDefinitions&gt;
                      &lt;TextBlock 
                          CommonNavigationTransitionInfo.IsStaggerElement="True"
                          Style="{ThemeResource ListViewItemTextBlockStyle}"
                          Text="{Binding State, FallbackValue=State}"/&gt;
                      &lt;TextBlock
                          Grid.Column="1"
                          Style="{ThemeResource ListViewItemTextBlockStyle}"
                          Text="{Binding Count, FallbackValue=1}"/&gt;
                  &lt;/Grid&gt;
              &lt;/DataTemplate&gt;
          &lt;/ListView.ItemTemplate&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>As you can see, is basically how the count in the right (the textblock bound with count). The problem is that each grid only uses the width it needs instead of getting the whole space</p>
  
  <p>Ideas??</p>
  
  <p>Thanks</p>