wp7, How to block scrolling in ScrollViewer

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 01:34:33

问题


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.


回答1:


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

Preventing the Pivot or Panorama controls from scrolling



来源:https://stackoverflow.com/questions/4244520/wp7-how-to-block-scrolling-in-scrollviewer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!