在Windows Phone 8应用程序中防止弹跳效果 [英] Prevent bouncing effect in windows phone 8 app

查看:67
本文介绍了在Windows Phone 8应用程序中防止弹跳效果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发多页动态WP8应用程序。我需要禁用WebBrowser默认的弹跳效果(如橡皮筋)。我把下面的行放在我的配置文件中,它在没有溢出滚动的页面中工作正常。如果内容动态加载并且具有垂直滚动,则会出现反弹效果。我该如何解决这个问题,请帮助..

I am developing multipage dynamic WP8 app. I need to disable WebBrowser default bouncing effect(like rubber band). I put the below line in my config file, it works fine in pages that didint have overflow scroll. If the contents loading dynamically and it has vertical scroll the bounce effect will appear. how can I solve this, pls help..

<preference name="DisallowOverscroll" value="true" />

使用cordova 3.4.0

Using cordova 3.4.0

推荐答案

public MainPage()
    {
        InitializeComponent();
        this.CordovaView.DisableBouncyScrolling = true; // add this line
        //Splash_Screen();
    }

这将解决您的问题检查此答案在Windows Phone 8中反映的Webview视图

this will solve your problem check this answer Webview bounce in windows phone 8

这篇关于在Windows Phone 8应用程序中防止弹跳效果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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