Skip to content

Instantly share code, notes, and snippets.

@rootasjey
Created June 3, 2017 10:13
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rootasjey/d83f1e4ef50216f7d1c80f6f4777d1eb to your computer and use it in GitHub Desktop.
Save rootasjey/d83f1e4ef50216f7d1c80f6f4777d1eb to your computer and use it in GitHub Desktop.
UWP Horizontal ListView in xaml/c#
<ListView x:Name="UserPhotosListView"
ScrollViewer.HorizontalScrollMode="Enabled"
ScrollViewer.HorizontalScrollBarVisibility="Auto"
ScrollViewer.IsHorizontalRailEnabled="True"
ItemTemplate="{StaticResource PhotoTemplate}">
<ListView.ItemsPanel>
<ItemsPanelTemplate>
<VirtualizingStackPanel Orientation="Horizontal" />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
</ListView>
@cvtung
Copy link

cvtung commented Aug 18, 2018

it works like a charm. Thank you 👍

@luandersonn
Copy link

Works beautiful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment