Note that there are some explanatory texts on larger screens.

plurals
  1. PODifference in behaviour of RowDefinition Height="Auto" with empty TextBlock between WP7 and WP8
    primarykey
    data
    text
    <p>I have a DataTemplate used in an ItemsControl that has a grid with 3 rows:</p> <pre><code> &lt;Grid Margin="12,0,0,4"&gt; &lt;Grid.ColumnDefinitions&gt; &lt;ColumnDefinition Width="80" /&gt; &lt;ColumnDefinition Width="330" /&gt; &lt;ColumnDefinition Width="30"/&gt; &lt;/Grid.ColumnDefinitions&gt; &lt;Grid.RowDefinitions&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;RowDefinition Height="Auto" /&gt; &lt;/Grid.RowDefinitions&gt; &lt;TextBlock Text="{Binding Due}" Foreground="CornflowerBlue" FontSize="28" HorizontalAlignment="Center" /&gt; &lt;TextBlock Text="{Binding Expected.Value}" Foreground="Red" FontSize="16" Grid.Row="1" Grid.RowSpan="2" HorizontalAlignment="Center" /&gt; &lt;TextBlock Text="{Binding Destination}" Grid.Column="1" FontSize="28" TextWrapping="Wrap" HorizontalAlignment="Left" /&gt; &lt;TextBlock Text="{Binding Via}" Grid.Column="1" Grid.Row="1" Foreground="Gray" FontSize="16" HorizontalAlignment="Left" /&gt; &lt;TextBlock Text="{Binding Status}" Grid.Column="1" Grid.Row="2" FontSize="16" HorizontalAlignment="Left" /&gt; &lt;TextBlock Text="{Binding Platform.Value}" Grid.Column="2" Grid.RowSpan="3" FontSize="40" VerticalAlignment="Top" HorizontalAlignment="Center" /&gt; &lt;/Grid&gt; </code></pre> <p>On some of the items, the Via binding will have an empty string, and on WP7 that causes the middle row to collapse. But when I convert the project to WP8, the behaviour is different, I get an empty line, as if it's reserving space for the textblox even though it has no text.</p> <p>How can I force WP8 to have the same behaviour as WP7 in this scenario?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload