<UserControl
    x:Class="PDF_Office.Views.Form.EditPresetColorsDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
    xmlns:cusColor="clr-namespace:PDF_Office.CustomControl.CompositeControl"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:PDF_Office.Views.Form"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://prismlibrary.com/"
    d:DesignHeight="450"
    d:DesignWidth="800"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">
    <cus:DialogContent
        Width="468"
        Height="258"
        Header="Edit Preset Colors">
        <cus:DialogContent.Content>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto" />
                    <ColumnDefinition />
                </Grid.ColumnDefinitions>

                <Border
                    Width="162"
                    Height="144"
                    Background="#F7F8FA"
                    BorderThickness="1"
                    CornerRadius="8">
                    <Grid Width="78" Height="18">
                        <Rectangle
                            x:Name="rect"
                            VerticalAlignment="Stretch"
                            Fill="{Binding FillColor}"
                            Stroke="{Binding BorderColor}"
                            StrokeThickness="1" />
                        <TextBlock
                            x:Name="text"
                            HorizontalAlignment="Center"
                            VerticalAlignment="Center"
                            FontFamily="Segoe UI"
                            FontSize="14"
                            Foreground="{Binding FontColor, Mode=OneWay}"
                            LineHeight="22"
                            Text="Text" />
                    </Grid>
                </Border>

                <Grid Grid.Column="1" Height="144">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                        <RowDefinition Height="*" />
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition />
                        <ColumnDefinition Width="auto" />
                    </Grid.ColumnDefinitions>

                    <TextBlock
                        Grid.ColumnSpan="2"
                        VerticalAlignment="Center"
                        Text="Settings" />
                    <TextBlock
                        Grid.Row="1"
                        VerticalAlignment="Center"
                        Text="Border Color:" />
                    <StackPanel
                        Grid.Row="1"
                        Grid.Column="1"
                        Orientation="Horizontal">
                        <cusColor:ColorContent
                            x:Name="BorderColorBox"
                            Grid.Row="2"
                            Grid.Column="1"
                            HorizontalAlignment="Left"
                            ShowColorList="Collapsed" />
                    </StackPanel>

                    <TextBlock
                        Grid.Row="2"
                        VerticalAlignment="Center"
                        Text="Background Color:" />
                    <StackPanel
                        Grid.Row="2"
                        Grid.Column="1"
                        Orientation="Horizontal">
                        <cusColor:ColorContent
                            x:Name="BgColorBox"
                            Grid.Row="2"
                            Grid.Column="1"
                            HorizontalAlignment="Left"
                            ShowColorList="Collapsed" />
                    </StackPanel>

                    <TextBlock
                        Grid.Row="3"
                        VerticalAlignment="Center"
                        Text="Text Color:" />
                    <StackPanel
                        Grid.Row="3"
                        Grid.Column="1"
                        Orientation="Horizontal">
                        <cusColor:ColorContent
                            x:Name="TextColorBox"
                            Grid.Row="2"
                            Grid.Column="1"
                            HorizontalAlignment="Left"
                            ShowColorList="Collapsed" />

                    </StackPanel>
                </Grid>
            </Grid>
        </cus:DialogContent.Content>

        <cus:DialogContent.BottmBar>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50*" />
                    <ColumnDefinition Width="50*" />
                    <ColumnDefinition Width="50*" />
                </Grid.ColumnDefinitions>
                <Button
                    Grid.Column="0"
                    Width="150"
                    Height="32"
                    Margin="25,0,0,0"
                    HorizontalAlignment="Right"
                    Command="{Binding CreateCommnad}"
                    Content="Reset Settings"
                    Style="{StaticResource btn.sec}" />
                <Button
                    Grid.Column="1"
                    Width="150"
                    Height="32"
                    Margin="25,0,0,0"
                    HorizontalAlignment="Right"
                    Command="{Binding CreateCommnad}"
                    Content="确定"
                    Style="{StaticResource Btn.cta}" />
                <Button
                    Grid.Column="2"
                    Width="150"
                    Height="32"
                    Margin="0,0,25,0"
                    HorizontalAlignment="Right"
                    Command="{Binding CancelCommand}"
                    Content="取消"
                    Style="{StaticResource btn.sec}" />
            </Grid>
        </cus:DialogContent.BottmBar>
    </cus:DialogContent>
</UserControl>
