<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="450" d:DesignHeight="600"
		MinWidth="450" MinHeight="550"
		Width="450" Height="600"
        x:Class="LibationAvalonia.Dialogs.AboutDialog"
		xmlns:controls="clr-namespace:LibationAvalonia.Controls"
        Title="About Libation"
		Icon="/Assets/libation.ico">
	
	<Grid Margin="10" ColumnDefinitions="Auto,*" RowDefinitions="Auto,Auto,Auto,Auto,*">
		
		<TextBlock Grid.ColumnSpan="2" FontSize="18" FontWeight="Bold" Text="{Binding Version}" />

		<controls:LinkLabel Grid.Column="1" FontSize="16" VerticalAlignment="Center" HorizontalAlignment="Right" Text="Release Notes" Tapped="ViewReleaseNotes_Tapped"/>
		
		<Button Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Stretch" HorizontalContentAlignment="Center" Margin="0,20,0,0"  IsEnabled="{Binding CanCheckForUpgrade}" Content="{Binding UpgradeButtonText}" Click="CheckForUpgrade_Click" />

		<Canvas Grid.Row="2" Grid.ColumnSpan="2" Margin="0,30" Width="345" Height="280">
			<Path Stretch="None" Fill="{DynamicResource IconFill}" Data="{DynamicResource LibationCheersIcon}">
				<Path.RenderTransform>
					<TransformGroup>
						<RotateTransform Angle="12" />
						<ScaleTransform ScaleX="0.5" ScaleY="0.5" />
						<TranslateTransform X="-150" Y="-120" /> 
					</TransformGroup>
				</Path.RenderTransform>
			</Path>
			<Path Stretch="None" Fill="{DynamicResource IconFill}" Data="{DynamicResource LibationCheersIcon}">
				<Path.RenderTransform>
					<TransformGroup>
						<ScaleTransform ScaleX="-1" ScaleY="1" />
						<RotateTransform Angle="-12" />
						<ScaleTransform ScaleX="0.5" ScaleY="0.5" />
						<TranslateTransform X="78" Y="-120" />
					</TransformGroup>			
				</Path.RenderTransform>
			</Path>
		</Canvas>
		
		<TextBlock Grid.Row="3" VerticalAlignment="Center" FontSize="16" FontWeight="Bold" Text="Loaded Assemblies"/>
		<Button Grid.Row="3" Grid.Column="1" HorizontalAlignment="Right" Padding="10,0" Content="Copy to Clopboard" Command="{Binding CopyAssembliesAsync}"/>
		
		<ListBox Grid.Row="4" Grid.ColumnSpan="2" Margin="0,10,0,0" ItemsSource="{Binding Assemblies}">
			<ListBox.Styles>
				<Style Selector="ListBoxItem" >
					<Setter Property="Padding" Value="0" />
					<Style Selector="^ > Grid > TextBlock" >
						<Setter Property="FontSize" Value="11" />
					</Style>
				</Style>
			</ListBox.Styles>
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Grid ColumnDefinitions="*,Auto">
						<TextBlock Text="{Binding Name}" />
						<TextBlock Grid.Column="1" Text="{Binding Version}" />
					</Grid>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		
	</Grid>
</Window>
