在Windows Phone 8.1应用程序中滚动Xaml元素以及webview滚动 [英] Scroll Xaml element along with webview scroll in windows phone 8.1 app
问题描述
<ScrollViewer Background="Yellow" >
<Grid VerticalAlignment="Stretch" >
<StackPanel Orientation="Vertical">
<StackPanel x:name="innerStackpanel" Background="Yellow" Margin="15 20 0 0">
<TextBlock></TextBlock>
</StackPanel>
<WebView DefaultBackgroundColor="Red" Height="1500" x:Name="msgContent" >
</WebView>
</StackPanel>
</Grid>
</ScrollViewer>
我希望我的innerStackpanel和webview在单个滚动视图中滚动
I want my innerStackpanel and webview to scroll in single scrolll view
推荐答案
你好Anand_Jothi ,
Hi Anand_Jot
请设置
VerticalScrollMode 和
HorizontalScrollMode 为Enabled,之后您的innerStackpanel和WebView将能够在单个ScrollViewer中滚动:
Please set the
VerticalScrollMode and
HorizontalScrollMode as Enabled, after that your innerStackpanel and WebView will be able to scroll in a single ScrollViewer:
<ScrollViewer Background="Yellow" VerticalScrollMode="Enabled" HorizontalScrollMode="Enabled">
......
</ScrollViewer>
最好的问候,
Amy Peng
Best Regards,
Amy Peng
这篇关于在Windows Phone 8.1应用程序中滚动Xaml元素以及webview滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!