<UserControl
    x:Class="PDF_Office.Views.Dialog.Redaction.MarkSettingDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:com="clr-namespace:PDF_Office.CustomControl.CompositeControl"
    xmlns:convert="clr-namespace:PDF_Office.DataConvert"
    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:PDF_Office.Views.Dialog.Redaction"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://prismlibrary.com/"
    Width="432"
    Height="462"
    d:DesignHeight="450"
    d:DesignWidth="800"
    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
    prism:ViewModelLocator.AutoWireViewModel="True"
    Background="{StaticResource color.sys.layout.anti}"
    mc:Ignorable="d">
    <UserControl.Resources>
        <convert:InvertBoolConvert x:Key="InvertBoolConvert" />
    </UserControl.Resources>
    <cus:DialogContent Header="Settings">
        <StackPanel Margin="16,0">
            <Grid Height="24">
                <TextBlock
                    VerticalAlignment="Center"
                    FontSize="12"
                    Foreground="{StaticResource color.sys.text.neutral.lv2}"
                    Text="Marker Color" />
            </Grid>
            <StackPanel
                Height="32"
                Margin="0,8"
                Orientation="Horizontal">
                <TextBlock
                    Name="TbOurline"
                    VerticalAlignment="Center"
                    Text="Redaction Mark Outline Color:" />
                <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
            </StackPanel>
            <StackPanel Height="32" Orientation="Horizontal">
                <TextBlock
                    Width="{Binding ElementName=TbOurline, Path=Width}"
                    VerticalAlignment="Center"
                    Text="Redact Area Fill Color:" />
                <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
            </StackPanel>
            <CheckBox
                Name="chkText"
                Margin="0,16,0,8"
                Content="Use Overlay Text" />
            <Border
                Width="400"
                Height="198"
                Background="{StaticResource color.sys.layout.mg}"
                CornerRadius="4"
                IsEnabled="{Binding ElementName=chkText, Path=IsChecked, Converter={StaticResource InvertBoolConvert}}">
                <StackPanel Margin="8">
                    <cus:TextBoxEx
                        Height="70"
                        VerticalContentAlignment="Top"
                        Text="123" />
                    <TextBlock
                        Margin="0,10"
                        FontSize="12"
                        Foreground="{StaticResource color.sys.text.neutral.lv2}"
                        Text="Font" />

                    <StackPanel Orientation="Horizontal">
                        <ComboBox Width="122.67" Height="32" />
                        <ComboBox
                            Width="122.67"
                            Height="32"
                            Margin="8,0" />
                        <ComboBox Width="122.67" Height="32" />
                    </StackPanel>
                    <StackPanel Margin="0,8,0,0" Orientation="Horizontal">
                        <RadioButton
                            Width="32"
                            Height="32"
                            Style="{StaticResource RectangleRadionButtonWithCorner}" />
                        <RadioButton
                            Width="32"
                            Height="32"
                            Margin="8,0"
                            Style="{StaticResource RectangleRadionButtonWithCorner}" />
                        <RadioButton
                            Width="32"
                            Height="32"
                            Style="{StaticResource RectangleRadionButtonWithCorner}" />
                        <RadioButton
                            Width="32"
                            Height="32"
                            Margin="8,0"
                            Style="{StaticResource RectangleRadionButtonWithCorner}" />
                        <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
                    </StackPanel>
                </StackPanel>
            </Border>

        </StackPanel>
        <cus:DialogContent.BottmBar>
            <StackPanel
                Margin="16,0"
                HorizontalAlignment="Right"
                Orientation="Horizontal">
                <Button
                    Width="80"
                    Height="32"
                    Content="Apply"
                    Style="{StaticResource Btn.cta}" />
                <Button
                    Width="80"
                    Height="32"
                    Margin="16,0,0,0"
                    Content="Cancel"
                    Style="{StaticResource btn.sec}" />
            </StackPanel>
        </cus:DialogContent.BottmBar>
    </cus:DialogContent>
</UserControl>
