简体   繁体   中英

Windows-8 scrollviewer doesn't scroll until all content is loaded

I have some content that loads into a XAML scrollviewer in Windows 8. The content takes up to 10 seconds to load on a Surface. But during that time the user can neither tap on an object in the ScrollViewer that has already loaded nor can they scroll the ScrollViewer until all the content has loaded. I've looked through all the IsHitTestVisible that I can find and I even added one to the ScrollViewer, but this still hasn't helped.

Has anyone else run into this issue? How can I solve it?

Thanks.

尝试在滚动查看器上设置这些属性: -

<ScrollViewer VerticalScrollBarVisibility="Visible" HorizontalScrollBarVisibility="Visible" ZoomMode="Disabled" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" VerticalAlignment="Top" Width="600" Height="400"> <StackPanel Width="1200" Height="400" Orientation="Horizontal"> <Border Background="AntiqueWhite" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" /> <Border Background="Blue" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" /> <Border Background="LimeGreen" Width="400" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" /> </StackPanel> </ScrollViewer>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM