列表视图滚动问题 [英] Listview scrolling problem
本文介绍了列表视图滚动问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
<StackPanel HorizontalAlignment="Left" Grid.RowSpan="2">
<Border BorderBrush="Black" BorderThickness="2" HorizontalAlignment="Left">
<StackPanel Height="380" Width="180" VerticalAlignment="Top">
<!--<Grid x:Name="LogText" Height="380" Visibility="Visible" Width="180" VerticalAlignment="Top">-->
<ListView x:Name="LogBox" VerticalAlignment="Top" Height="200" ScrollViewer.CanContentScroll="True" ScrollViewer.VerticalScrollBarVisibility="Visible">
<!--<Grid x:Name="LogBox" Height="200" >
</Grid>-->
</ListView>
<TextBox x:Name="notebox" Height="180" VerticalAlignment="Bottom" AcceptsReturn="True" TextWrapping="Wrap" VerticalScrollBarVisibility="Auto"></TextBox>
</StackPanel>
<!--</Grid>-->
</Border>
</StackPanel>
这是我的代码,Listview滚动不起作用.
This is my code Listview scrolling is not working.
推荐答案
我刚刚尝试过,填充了20个项目,并且滚动良好.也许有些事情你没有告诉我们.
I just tried that, populated with 20 items and it scrolls fine. Maybe there is something you are not telling us.
这篇关于列表视图滚动问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文