web浏览器块PivotControl滑动 [英] WebBrowser blocks sliding in PivotControl

查看:83
本文介绍了web浏览器块PivotControl滑动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有PivotControl在我的应用程序,在某些pivotItems web浏览器中。 我注意到,web浏览器块滑动到下一个支点。我不知道这是正常的,因为 其他枢轴滑梯和一个具有web浏览器不,这可能会造成混淆。这是 行为是否正确?有没有办法解决这个问题? (也许有点黑客)

这是我的XAML code:

 <控制:短线标题=我的PIVOT>
    <控制:PivotItem标题=第一>
        < TextBlock的文本=第一枢/>
    < /控制:PivotItem>
    <控制:PivotItem标题=第二>
        < TextBlock的文本=二轴/>
    < /控制:PivotItem>
    <控制:PivotItem标题=第三>
        <电话:web浏览器源=htt​​p://www.stackoverflow.com/>
    < /控制:PivotItem>
< /控制:短线>
 

解决方案

这是正确的行为。

web浏览器这是否启用水平滚动网页。

这就是为什么它是不建议把这种控制在透视。例如,可以尝试在里面地图控制透视

我建议你把你的 web浏览器支点,并把它放在一个单独的页面。

I have PivotControl in my application and in some of pivotItems WebBrowser. I noticed that WebBrowser blocks sliding to next pivots. I'm not sure if this is ok, because other pivots slides and that one with WebBrowser doesn't, and that can be confusing. Is this behavior correct? Is there way to solve this? (maybe little hack)

here is my xaml code:

<controls:Pivot Title="MY PIVOT">
    <controls:PivotItem Header="first">
        <TextBlock Text="First Pivot" />
    </controls:PivotItem> 
    <controls:PivotItem Header="second">
        <TextBlock Text="Second Pivot" />
    </controls:PivotItem>       
    <controls:PivotItem Header="third">
        <phone:WebBrowser Source="http://www.stackoverflow.com" />
    </controls:PivotItem>
</controls:Pivot>

解决方案

This is correct behavior.

WebBrowser does that to enable Horizontal scrolling for web pages.

That is why it is not advisable to put such controls in a Pivot. For example, try putting a Map control inside a Pivot.

I recommend you take your WebBrowser out of Pivot and put it in a separate page.

这篇关于web浏览器块PivotControl滑动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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