<mah:MetroWindow x:Class="FFXIV_TexTools.Views.Wizard.ImportWizardWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        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"
        xmlns:local="clr-namespace:FFXIV_TexTools.Views.Wizard"
        xmlns:mah="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
        mc:Ignorable="d"
        xmlns:resx="clr-namespace:FFXIV_TexTools.Resources"
        resx:Localization.Enabled="True"                  
        Title="{Binding Source={x:Static resx:UIStrings.Import_ModPack_Wizard}}" Height="700" Width="800" ShowMaxRestoreButton="False" ShowMinButton="False" WindowStartupLocation="CenterOwner">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="40"/>
        </Grid.RowDefinitions>
        <xctk:Wizard x:Name="WizardControl" 
                 BackButtonVisibility="Collapsed"
                 HelpButtonVisibility="Collapsed"
                 NextButtonVisibility="Collapsed"
                 CancelButtonVisibility="Collapsed"
                 IsTabStop="False" Background="{x:Null}">
            <xctk:WizardPage PageType="Blank" Background="{x:Null}">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>

                    <GroupBox Header="Preview" Grid.Row="0">
                        <Grid  Margin="5" Height="150">
                            <Image Source="{Binding Path=HeaderSource}" />
                        </Grid>
                    </GroupBox>
                    
                    <GroupBox Grid.Row="1" Header="Info">
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            
                            <Grid>
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition Height="Auto"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition></ColumnDefinition>
                                    <ColumnDefinition></ColumnDefinition>
                                </Grid.ColumnDefinitions>
                                <StackPanel Grid.Column="0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Label Content="{Binding Source={x:Static resx:UIStrings.Name_colon}}" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                    <Label Name="ModPackNameLabel" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>
                                </StackPanel>
                                <StackPanel Grid.Column="0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Label Content="{Binding Source={x:Static resx:UIStrings.Author_colon}}" VerticalAlignment="Center"/>
                                    <Label Name="ModPackAuthorLabel" VerticalAlignment="Center" HorizontalAlignment="Center"/>
                                </StackPanel>
                                <StackPanel Grid.Column="1" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Label Content="{Binding Source={x:Static resx:UIStrings.Version_colon}}"  VerticalAlignment="Center"/>
                                    <Label Name="ModPackVersionLabel" VerticalAlignment="Center" HorizontalAlignment="Center" FontWeight="Bold"/>
                                </StackPanel>
                                <StackPanel Grid.Column="1" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Left">
                                    <Label Content="Url:"  VerticalAlignment="Center"/>
                                    <TextBlock Name="ModPackUrlLabel" VerticalAlignment="Center" HorizontalAlignment="Center" TextDecorations="Underline" FontStyle="Italic" FontFamily="Courier New" Foreground="#FF809FFF"></TextBlock>
                                </StackPanel>
                            </Grid>
                            <Grid Grid.Row="1">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="Auto"/>
                                    <RowDefinition/>
                                </Grid.RowDefinitions>
                                <Label Content="{Binding Source={x:Static resx:UIStrings.Description}}"/>
                                <TextBox x:Name="ModPackDescription" Grid.Row="1" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" IsReadOnly="True"/>
                            </Grid>
                        </Grid>
                    </GroupBox>
                </Grid>
            </xctk:WizardPage>
        </xctk:Wizard>

        <Grid x:Name="ButtonRow" Grid.Row="1">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="1*"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="120"/>
                <ColumnDefinition Width="120"/>
            </Grid.ColumnDefinitions>

            <Button Grid.Column="0" Content="Cancel" Margin="5,5,5,5" VerticalAlignment="Center" Click="Cancel_Click"/>
            <Button Grid.Column="2" Content="Previous Page" Margin="5,5,5,5" VerticalAlignment="Center" Click="PrevPage_Click" IsEnabled="{Binding Path=PreviousEnabled}"/>
            <Button Grid.Column="3" Content="Next Page" Margin="5,5,5,5" VerticalAlignment="Center" Click="NextPage_Click" IsEnabled="{Binding Path=NextEnabled}" Visibility="{Binding Path=NextVisible}"/>
            <Button Grid.Column="4" Content="Finish" Margin="5,5,5,5" VerticalAlignment="Center" Click="Finalize_Click" IsEnabled="{Binding Path=FinalizeEnabled}" Visibility="{Binding Path=FinalizeVisible}"/>
        </Grid>
    </Grid>
</mah:MetroWindow>
