<?xml version="1.0" encoding="utf-8"?>
<Page
    x:Class="MangaReader.WinUI.Views.LibraryView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:MangaReader.WinUI.Views"
    xmlns:vm="using:MangaReader.WinUI.ViewModels"
    xmlns:search="using:MangaReader.Core.Search"
    xmlns:UI="using:CommunityToolkit.WinUI"
    xmlns:Controls="using:CommunityToolkit.WinUI.Controls"
    xmlns:Media="using:CommunityToolkit.WinUI.Media"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    DataContext="{Binding Source={StaticResource Locator}, Path=LibraryViewModel}"
    d:DataContext="{d:DesignInstance Type=vm:LibraryViewModel, IsDesignTimeCreatable=True}"
    mc:Ignorable="d">
    
    <Grid Padding="0" RowSpacing="20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Border HorizontalAlignment="Stretch">
            <StackPanel Orientation="Horizontal" Spacing="10" HorizontalAlignment="Center" Padding="10">
                <TextBlock Text="Library" Width="300"></TextBlock>
            </StackPanel>
        </Border>

        <!--<ScrollViewer Grid.Row="1" RenderTransformOrigin=".5,.5" Padding="50">
            <ScrollViewer.RenderTransform>
                <ScaleTransform ScaleX="1" ScaleY="1" />
            </ScrollViewer.RenderTransform>
            <ItemsRepeater ItemsSource="{Binding SearchResults2, Mode=OneWay}" ItemTemplate="{StaticResource MangaSearchResultTemplate}">
                <ItemsRepeater.Layout>
                    <UniformGridLayout MinRowSpacing="50" MinColumnSpacing="50" ItemsStretch="Fill" MinItemWidth="800"></UniformGridLayout>
                </ItemsRepeater.Layout>
            </ItemsRepeater>
        </ScrollViewer>-->
        
    </Grid>
</Page>
