本文介绍了wp7,如何在ScrollViewer中阻止滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不会在ScrollViewer中移动UIElement.我有这样的想法:

I wont to move UIElements in ScrollViewer. I have somthink like this:

<ScrollViewer x:Name="scroll">
    <Canvas x:Name="sheet" Width="480" Height="10000">
        <Rectangle Canvas.Left="51" Canvas.Top="116" Height="114" Width="337"/>
    </Canvas>
</ScrollViewer>

我使用ManipulationDelta事件移动矩形.但是,当我这样做时,scrollViewer也会滚动.

I move the rectangle using ManipulationDelta event. However when I do it the scrollViewer scrolls as well.

如何锁定ScrollViewer的滚动?

How to lock scrolling of ScrollViewer?

该代码根本没有帮助.

that code doesn't help at all.

ScrollBarVisibility.Disabled;

我已经失去了三天的时间才能找到解决办法,但我什么也找不到.

I've lost 3 days to find solution and I can't find anything.

推荐答案

这仅用于处理全景/枢纽上的手势冲突.

This just in on dealing with gesture conflict on pano / pivot.

防止滚动显示的枢轴"或全景"控件

这篇关于wp7,如何在ScrollViewer中阻止滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-29 01:21