I have a listview that can contain anywhere between 1 & 10 items of text. The ListView must be contained in a specific size of a grid.
I want each item be able to wrap onto another row (Which I can get working ok) but when the items eventually reach the bottom of the Grid region, I then want the items to resize in font, maintaining the wrapped text & not allowing an scrolling.
I may be asking too much of WPF or not explaining this very well.
<ListView Name="lvWrap" ItemsSource="{Binding Directions}" Style="{DynamicResource ListViewStyle1}" FontSize="29">
<ListView.ItemTemplate>
<DataTemplate>
<DockPanel Name="MainGrid" HorizontalAlignment="Stretch">
<TextBlock Text="{Binding}" TextWrapping="Wrap"/>
</DockPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
This wraps every item ok, but the bottom items dissapear off screen. I dont want this to happen