<Window xmlns="https://github.com/avaloniaui"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="450"
		xmlns:uibase="clr-namespace:LibationUiBase;assembly=LibationUiBase"
		x:DataType="uibase:LocatedAudiobooksViewModel"
		x:CompileBindings="True"
		Width="600" Height="450"
		x:Class="LibationAvalonia.Dialogs.LocateAudiobooksDialog"
        Title="Locate Audiobooks"
		WindowStartupLocation="CenterOwner">

	<Grid Margin="5" ColumnDefinitions="*,Auto" RowDefinitions="Auto,*">
		<TextBlock Grid.Column="0" Text="Found Audiobooks" />
		<StackPanel Grid.Column="1"  Orientation="Horizontal">

			<TextBlock Text="IDs Found: " />
			<TextBlock Text="{Binding FoundAsinCount}" />
		</StackPanel>
		<DataGrid
			Margin="0,5,0,0"
			Grid.Row="1"
			Grid.ColumnSpan="2"
			IsReadOnly="True"
			CanUserSortColumns="True"
			CanUserResizeColumns="True"
			GridLinesVisibility="All"
			DoubleTapped="foundFilesDataGrid_DoubleTapped"
			Name="foundFilesDataGrid"
			ItemsSource="{Binding FoundFiles}">
			<DataGrid.Styles>
				<Style Selector="DataGridCell TextBlock">
					<Setter Property="ToolTip.Tip" Value="Double-click to open containing folder."/>
				</Style>
				</DataGrid.Styles>
			<DataGrid.Columns>
				<DataGridTextColumn
					Header="Found ID"
					Width="Auto"
					Binding="{Binding ID}" />
				<DataGridTextColumn
					Header="Found File"
					Width="*"
					Binding="{Binding FileName}" />
				</DataGrid.Columns>			
		</DataGrid>
	</Grid>
</Window>
