问题
Is it possible to disable scrolling in GridView ?
回答1:
Try this inside of the GridView
<GridView
ScrollViewer.HorizontalScrollBarVisibility="Disabled">
回答2:
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);
来源:https://stackoverflow.com/questions/12054273/metro-app-how-to-disable-gridview-scrolling