Juggling view of ListView when horizontal scrollbar is shown
Posted: 26 Dec 2017, 06:23
Please feed the following XAML to XamlPlayer. Then click the 'Font' header of the shown ListView. You'll see that the view is juggling left <-> right.
This doesn't happen if the horizontal scrollbar is not shown.
This doesn't happen if the horizontal scrollbar is not shown.
Code: Select all
<UserControl xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="400" Height="300">
<Grid>
<ListView>
<ListView.View>
<GridView>
<GridViewColumn Header="Text" Width="200" DisplayMemberBinding="{Binding Text}"/>
<GridViewColumn Header="Font" Width="230" DisplayMemberBinding="{Binding FontFamily}"/>
</GridView>
</ListView.View>
<ListView.Items>
<TextBlock Text="First"/>
<TextBlock Text="Second"/>
<TextBlock Text="Third"/>
</ListView.Items>
</ListView>
</Grid>
</UserControl>