wp7,如何在 ScrollViewer 中阻止滚动

发布于 2024-10-04 02:40:19 字数 501 浏览 0 评论 0原文

我不会在 ScrollViewer 中移动 UIElements。我有这样的想法:

<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 也会滚动。

如何锁定ScrollViewer的滚动?

该代码根本没有帮助。

ScrollBarVisibility.Disabled;

我花了三天时间寻找解决方案,但什么也没找到。

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>

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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒浓于脸红 2024-10-11 02:40:19

这只是为了处理全景/枢轴上的手势冲突。

防止枢轴或全景控件滚动

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

Preventing the Pivot or Panorama controls from scrolling

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文