I want to Change the Height
of the ItemContainer
and not the Height
of the Item itself the Container is in a ListView
What I want to Change:
To Something like this:
The structur of the Code Looks like this:
<ListView>
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding A}" Grid.Column="0"/>
<TextBlock Text="{Binding B}" Grid.Column="1"/>
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
Hope for some help
You need to change the
MinHeight
of allListViewItem
elements that appear in yourListView
. You can achieve this by using aStyle
.Using
Padding
with this method is also a good idea as you do not want each list view item to be too thin.