<Window x:Class="BallanceTasEditor.Frontend.Views.PreferenceDialog"
        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:BallanceTasEditor.Frontend.Views"
        xmlns:vm="clr-namespace:BallanceTasEditor.Frontend.ViewModels"
        xmlns:styles="clr-namespace:BallanceTasEditor.Frontend.Styles"
        d:DataContext="{d:DesignInstance vm:PreferenceDialog}"
        mc:Ignorable="d" WindowStartupLocation="CenterOwner" ResizeMode="NoResize" ShowInTaskbar="False"
        Title="Editor Preference" Height="450" Width="400" Icon="/Frontend/Assets/Preference.ico">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <ScrollViewer Grid.Row="0" VerticalScrollBarVisibility="Visible">
            <StackPanel Orientation="Vertical">
                <!-- TODO: This icon is wrong. -->
                <GroupBox Header="Editor Layout" Margin="10" Padding="10"
                          Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Frontend/Assets/EditorLayout.ico">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <RadioButton Content="Horizontal Layout" GroupName="EditorLayout" Grid.Column="0"/>
                        <RadioButton Content="Vertical Layout" GroupName="EditorLayout" Grid.Column="1"/>
                    </Grid>
                </GroupBox>
                <GroupBox Header="Paste Behavior" Margin="10" Padding="10"
                          Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Frontend/Assets/PasteFrame.ico">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <RadioButton Content="Insert Paste" GroupName="PasteBehavior" Grid.Column="0"/>
                        <RadioButton Content="Overwritten Paste" GroupName="PasteBehavior" Grid.Column="1"/>
                    </Grid>
                </GroupBox>
                <GroupBox Header="Frame Count" Margin="10" Padding="10"
                          Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Frontend/Assets/Count.ico">
                    <TextBox Padding="3"/>
                </GroupBox>
                <GroupBox Header="Game Path" Margin="10" Padding="10"
                          Style="{StaticResource AccessoryIconGroupBox}" styles:AccessoryIcon.Icon="/Frontend/Assets/SaveFileThenRunGame.ico">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="auto"/>
                        </Grid.ColumnDefinitions>
                        <TextBox IsReadOnly="True" Padding="3" Grid.Column="0"/>
                        <Button Content="Browse" Margin="5,0,0,0" MinWidth="80" Grid.Column="1"/>
                    </Grid>
                </GroupBox>
            </StackPanel>
        </ScrollViewer>

        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="10">
            <Button Content="OK" Margin="5" Style="{StaticResource OkButtonStyle}" IsDefault="True"
                    Command="{Binding OkCommand}"/>
            <Button Content="Cancel" Margin="5" Style="{StaticResource CancelButtonStyle}"
                    Command="{Binding CancelCommand}"/>
        </StackPanel>
    </Grid>
</Window>
