UWP: Mouse wheel on horizontal ListView

Problem:

By default ListView is vertical orientation and scrollable. To change ListView horizontal we set in it ItemsPanelTemplate: <ItemsStackPanel Orientation=”Horizontal”/>. But in mouse wheel is not working on horizontal ListView

Solution:

  1. Fixed width for the ListView
  2. Disable parent scrollviewer horizontal by setting ScrollViewer.HorizontalScrollMode = “Disabled” if the ListView inside scrollviewer

Leave a Reply