在Windows Phone 8.1应用程序中滚动Xaml元素以及webview滚动 [英] Scroll Xaml element along with webview scroll in windows phone 8.1 app

查看:63
本文介绍了在Windows Phone 8.1应用程序中滚动Xaml元素以及webview滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<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

Horizo​​ntalScrollMode
为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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆