<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:widget="clr-namespace:BallanceTasEditor.Frontend.Widgets"
        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">
                <widget:IconGroupBox GroupBoxText="Editor Layout" 
                                     GroupBoxIcon="/Frontend/Assets/EditorLayout.ico"
                                     Margin="10" Padding="10">
                    <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>
                </widget:IconGroupBox>
                <widget:IconGroupBox GroupBoxText="Paste Behavior" 
                                     GroupBoxIcon="/Frontend/Assets/PasteFrame.ico"
                                     Margin="10" Padding="10">
                    <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>
                </widget:IconGroupBox>
                <widget:IconGroupBox GroupBoxText="Frame Count" 
                                     GroupBoxIcon="/Frontend/Assets/Count.ico"
                                     Margin="10" Padding="10">
                    <TextBox Padding="3"/>
                </widget:IconGroupBox>
                <widget:IconGroupBox GroupBoxText="Game Path" 
                                     GroupBoxIcon="/Frontend/Assets/SaveFileThenRunGame.ico"
                                     Margin="10" Padding="10">
                    <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>
                </widget:IconGroupBox>
            </StackPanel>
        </ScrollViewer>

        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="10">
            <widget:IconButton Margin="5" Style="{StaticResource OkIconButtonStyle}" IsDefault="True"
                               Command="{Binding OkCommand}"/>
            <widget:IconButton Margin="5" Style="{StaticResource CancelIconButtonStyle}"
                               Command="{Binding CancelCommand}"/>
        </StackPanel>
    </Grid>
</Window>
