3

是否可以在 GridView 中禁用滚动?

4

2 回答 2

3

在 GridView 中试试这个

<GridView
    ScrollViewer.HorizontalScrollBarVisibility="Disabled">
于 2012-08-21T12:26:15.623 回答
0

As an alternative you could use

<GridView ScrollViewer.HorizontalScrollMode="Disabled" />

If you're setting this property dynamically, the Scrolling will be disabled but the ScrollPosition stays (on *ScrollBarVisibilty=Disabled the ScrollPosition gets set to 0)

Dynamic Example:

ScrollViewer.SetHorizontalScrollMode(YourGridView, ScrollMode.Disabled);
于 2014-02-18T10:14:07.113 回答