I have a simple ListView
<ListView ItemsSource="{Binding SelectedSearch.Offers}"
IsItemClickEnabled="True"
ItemClick="lv_ItemClick_1"
Margin="0,0,0,10"
Name="lv"
SelectionMode="None"
IsSwipeEnabled="false"
ItemTemplateSelector="{StaticResource OffersGridTemplateSelector}"/>
And I custom ItemTemplate selector used to choose between two different DataTemplates. The problem is, that each items seems to have something like a minimum height.
If I use a DataTemplate with just a TextBlock
<DataTemplate x:Key="SpecialTextTemplate">
<TextBlock Text="{Binding Text}" />
</DataTemplate>
the item takes too much space verticaly. It seems to take the same minimum space as the other template composed of 3 textblocks in a stackpanel
How do I make it shrink to the height of the content? Is there a minimum height?