31 lines
1.6 KiB
XML
31 lines
1.6 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LANCommander.Launcher.ViewModels"
|
|
xmlns:vmComponents="using:LANCommander.Launcher.ViewModels.Components"
|
|
xmlns:components="using:LANCommander.Launcher.Views.Components"
|
|
xmlns:controls="using:LANCommander.Launcher.Controls"
|
|
x:Class="LANCommander.Launcher.Views.GamesShelfView"
|
|
x:DataType="vm:GamesCollectionViewModel">
|
|
|
|
<ScrollViewer Classes="TitlebarOffset"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
VerticalScrollBarVisibility="Disabled"
|
|
controls:ScrollPersistence.ViewModel="{Binding}">
|
|
<ItemsRepeater ItemsSource="{Binding Games}" Margin="12,52,12,24" ClipToBounds="False"
|
|
controls:DirectionalNavigation.IsEnabled="True"
|
|
controls:AutoFocus.IsEnabled="True">
|
|
<ItemsRepeater.Layout>
|
|
<StackLayout Orientation="Horizontal" Spacing="8" />
|
|
</ItemsRepeater.Layout>
|
|
<ItemsRepeater.ItemTemplate>
|
|
<DataTemplate DataType="vmComponents:GameItemViewModel">
|
|
<components:CoverButton
|
|
Width="120" Height="180"
|
|
Command="{Binding $parent[ItemsRepeater].((vm:GamesCollectionViewModel)DataContext).ViewGameDetailsCommand}"
|
|
CommandParameter="{Binding}" />
|
|
</DataTemplate>
|
|
</ItemsRepeater.ItemTemplate>
|
|
</ItemsRepeater>
|
|
</ScrollViewer>
|
|
|
|
</UserControl>
|