[W8.1]对于winRT商店应用程序中的Scrollviewer,我无法使用Touch输入滚动它 [英] [W8.1]For a Scrollviewer in winRT store apps I am Unable to Scroll it using Touch input

查看:62
本文介绍了[W8.1]对于winRT商店应用程序中的Scrollviewer,我无法使用Touch输入滚动它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于winRT商店应用中的ScrollViewer,我无法使用Touch输入滚动它。我在ScrollViewer中有几个ListView。  它仅适用于鼠标悬停或鼠标事件。

For a ScrollViewer in winRT store apps I am Unable to Scroll it using Touch input. I have several ListViews inside the ScrollViewer.  It Only works fine on mouse over or mouse events.

如果有其他方法可以解决此问题,您能否建议我。

Can you suggest me if there is any other way to solve this.

推荐答案

Hello Kbv Subrahmanyam,

Hello Kbv Subrahmanyam,

我使用以下代码和我无法重现您的问题:

I use the following code and I cannot reproduce your issue:

<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <ScrollViewer Margin="0,0,0,160">
            <ListView>
                <ListViewItem x:Name="item1" Content="12345"/>               
                <ListViewItem x:Name="item2" Content="12345"/>
                <ListViewItem x:Name="item3" Content="12345"/>
                <ListViewItem x:Name="item4" Content="12345"/>
                <ListViewItem x:Name="item5" Content="12345"/>
                <ListViewItem x:Name="item6" Content="12345"/>
                <ListViewItem x:Name="item7" Content="12345"/>
                <ListViewItem x:Name="item8" Content="12345"/>
                <ListViewItem x:Name="item9" Content="12345"/>
                <ListViewItem x:Name="item10" Content="12345"/>
                <ListViewItem x:Name="item11" Content="12345"/>
                <ListViewItem x:Name="item12" Content="12345"/>
                <ListViewItem x:Name="item13" Content="12345"/>
                <ListViewItem x:Name="item14" Content="12345"/>
                <ListViewItem x:Name="item15" Content="12345"/>
            </ListView>
        </ScrollViewer>

    </Grid>

当我使用触摸设备时,它可以毫无问题地滚动。这可能是你的设备问题吗?怎么样给我看一个repro示例,以便我们可以帮助您检查代码。

When I use the touch device it can scroll without problem. Could it be your device problem? What about show me a repro sample so that we can help you check your code.

如果是设备问题,请切换设备并查看结果。

If it is the device problem, please switch a device and see the result.

如果是代码问题,请检查您是否写过任何可能导致此问题的特定属性。

If it is the code problem, please check that you haven't write any specific property which may cause this problem.

祝你好运,

Barry


这篇关于[W8.1]对于winRT商店应用程序中的Scrollviewer,我无法使用Touch输入滚动它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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