I have managed to reproduce a weird behavior in the auto scrollviewer functionality of a listbox when it is placed in a 2*2 grid.
If you try to use the following xaml as it is you will see that the vertical scrollviewer is there but not visible (it just exceeds the width of the first column)
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Window1" Height="200" Width="200">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"/>
<ColumnDefinition />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition />
</Grid.RowDefinitions>
<ListBox Grid.Row="0" Grid.RowSpan="2" Grid.Column="0" >
<ListBox.Items>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
<TextBlock Text="Item"/>
</ListBox.Items>
</ListBox>
<Canvas Background="Yellow" Grid.Row="0" Grid.Column="1" MinHeight="20"/>
<Canvas Background="Red" Grid.Row="1" Grid.Column="1" MinHeight="20"/>
</Grid>
The problematic control as far as i can tell is the first canvas (the yellow one). To be more specific WPF does not like any controls to be placed in row=0 column=1, and breaks the scrollviewer functionality.
Is this issue reproducible to anyone else or just me?