2

In a template I'm using a ScrollViewer with the following properties:

<ScrollViewer
    VerticalScrollBarVisibility="Disabled"
    HorizontalScrollBarVisibility="Hidden"
    HorizontalSnapPointsType="MandatorySingle"
    HorizontalSnapPointsAlignment="Near"
    ZoomMode="Disabled">
    <ItemsPresenter/>
</ScrollViewer>

This works mostly fine. The only detail I want to change is to disable "scroll compression" when the scroll viewer is scrolled to either the leftmost/rightmost positions. At these positions, if I touch and drag past the beginning/end then the contents of the ScrollViewer is compressed slightly to indicate that scrolling in that direction is not possible.

Is there a way to disable this behavior?

4

1 回答 1

0

不,如果内容大于视口,则不能关闭过度反弹(我们称之为)。如果内容绝对适合ScrollViewer您可以设置的视口ScrollMode=Auto,但这只会在适合的情况下不会过度反弹。

于 2013-08-29T16:09:15.340 回答