<UserControl
    x:Class="PDF_Office.Views.Dialog.PageEditDialogs.ExtractDialog"
    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:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
    xmlns:prism="http://prismlibrary.com/"
    Width="320"
    Height="208"
    d:DataContext="{d:DesignInstance Type=pageeditdialogs:ExtractDialogViewModel}"
    d:DesignHeight="450"
    d:DesignWidth="800"
    prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
    prism:ViewModelLocator.AutoWireViewModel="True"
    mc:Ignorable="d">
    <cus:DialogContent Header="提取页面">
        <cus:DialogContent.Content>
            <StackPanel
                Grid.Row="1"
                Margin="16,0"
                HorizontalAlignment="Center">
                <CheckBox
                    Margin="0,18"
                    VerticalAlignment="Center"
                    Content="每个页面作为单独页面"
                    FontSize="14"
                    IsChecked="{Binding Model.IsEveryPageToFile, Mode=TwoWay}" />
                <CheckBox
                    Content="提取后删除页面"
                    FontSize="14"
                    IsChecked="{Binding Model.IsDeleteAfterExtract, Mode=TwoWay}" />
            </StackPanel>
        </cus:DialogContent.Content>
        <cus:DialogContent.BottmBar>
            <Grid>
                <Button
                    Width="98"
                    Height="32"
                    Margin="0,0,124,0"
                    HorizontalAlignment="Right"
                    Command="{Binding ExtractCommnad}"
                    Content="提取" />
                <Button
                    Width="98"
                    Height="32"
                    Margin="16,0"
                    HorizontalAlignment="Right"
                    Command="{Binding CancelCommand}"
                    Content="取消" />
            </Grid>
        </cus:DialogContent.BottmBar>
    </cus:DialogContent>
</UserControl>
