<UserControl
    x:Class="PDF_Office.Views.PropertyPanel.AnnotPanel.DynamicPropertyDialog"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:annotpanel="clr-namespace:PDF_Office.ViewModels.PropertyPanel.AnnotPanel"
    xmlns:cus="clr-namespace:PDF_Office.CustomControl"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
    xmlns:local="clr-namespace:PDF_Office.Views.PropertyPanel.AnnotPanel"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="http://prismlibrary.com/"
    Width="500"
    Height="300"
    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
    d:DataContext="{d:DesignInstance Type={x:Type annotpanel:DynamicPropertyDialogViewModel}}"
    mc:Ignorable="d">
    <cus:DialogContent Header="动态图章">
        <cus:DialogContent.BottmBar>
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="50*" />
                    <ColumnDefinition Width="50*" />
                </Grid.ColumnDefinitions>
                <Button
                    Grid.Column="0"
                    Width="150"
                    Height="32"
                    Margin="25,0,0,0"
                    HorizontalAlignment="Left"
                    Style="{StaticResource Btn.cta}"
                    Command="{Binding ApplyCommnad}"
                    Content="确定" />
                <Button
                    Grid.Column="1"
                    Width="150"
                    Height="32"
                    Margin="0,0,25,0"
                    HorizontalAlignment="Right"
                    Style="{StaticResource btn.sec}"
                    Command="{Binding CancelCommand}"
                    Content="取消" />
            </Grid>
        </cus:DialogContent.BottmBar>
        <StackPanel
            Grid.Row="1"
            Height="50"
            HorizontalAlignment="Center"
            Orientation="Horizontal">
            <CheckBox
                x:Name="chkAuthor"
                Margin="0,0,0,8"
                Padding="7,0,0,0"
                VerticalAlignment="Center"
                Content="Author"
                FontFamily="Seoge UI"
                FontSize="14"
                IsChecked="{Binding IsChecked}" />
            <TextBox
                x:Name="txtAuthor"
                Width="152"
                Height="32"
                Margin="0,0,0,8"
                HorizontalAlignment="Right"
                VerticalContentAlignment="Center"
                IsEnabled="{Binding IsChecked, ElementName=chkAuthor}"
                Text="{Binding Author, Mode=TwoWay}" />
            <TextBlock
                x:Name="lbCreateDate"
                Grid.Row="1"
                Margin="27,0,0,0"
                VerticalAlignment="Center"
                FontFamily="Seoge UI"
                FontSize="14"
                Foreground="Black"
                Text="Date" />
            <ComboBox
                x:Name="txtCreateDate"
                Grid.Row="1"
                Width="152"
                HorizontalAlignment="Right"
                Background="Transparent"
                BorderBrush="#FFE2E3E6"
                BorderThickness="1"
                ItemsSource="{Binding DateFormatList}"
                SelectedIndex="{Binding SelectedIndex}" />
        </StackPanel>
    </cus:DialogContent>
</UserControl>
