|
@@ -2,123 +2,107 @@
|
|
|
x:Class="PDF_Office.Views.Dialog.PageEditDialogs.SplitDialog"
|
|
|
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="480"
|
|
|
Height="481"
|
|
|
+ d:DataContext="{d:DesignInstance Type=pageeditdialogs:SplitDialogViewModel}"
|
|
|
d:DesignHeight="450"
|
|
|
d:DesignWidth="800"
|
|
|
+ prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
|
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
|
|
mc:Ignorable="d">
|
|
|
- <prism:Dialog.WindowStyle>
|
|
|
- <Style TargetType="{x:Type Window}">
|
|
|
- <Setter Property="WindowStyle" Value="None" />
|
|
|
- <Setter Property="prism:Dialog.WindowStartupLocation" Value="CenterOwner" />
|
|
|
- </Style>
|
|
|
- </prism:Dialog.WindowStyle>
|
|
|
- <Border Background="White" CornerRadius="8">
|
|
|
- <Grid>
|
|
|
- <Grid.RowDefinitions>
|
|
|
- <RowDefinition Height="48" />
|
|
|
- <RowDefinition Height="*" />
|
|
|
- <RowDefinition Height="auto" />
|
|
|
- <RowDefinition Height="64" />
|
|
|
- </Grid.RowDefinitions>
|
|
|
-
|
|
|
- <Border VerticalAlignment="Center" BorderThickness="0,0,0,1">
|
|
|
- <Border.BorderBrush>
|
|
|
- <SolidColorBrush Opacity="0.8" Color="White" />
|
|
|
- </Border.BorderBrush>
|
|
|
- <TextBlock
|
|
|
- Margin="16,0"
|
|
|
- FontSize="16"
|
|
|
- FontWeight="SemiBold"
|
|
|
- Text="拆分页面" />
|
|
|
- </Border>
|
|
|
-
|
|
|
- <StackPanel Grid.Row="1" Margin="16,0">
|
|
|
- <TextBlock
|
|
|
- FontSize="14"
|
|
|
- FontWeight="SemiBold"
|
|
|
- Text="拆分方式" />
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <RadioButton Margin="0,12,0,0" Content="平均每" />
|
|
|
- <TextBox
|
|
|
- Width="110"
|
|
|
- Height="32"
|
|
|
- Margin="8,0" />
|
|
|
- <TextBlock VerticalAlignment="Center" Text="页拆分为一个PDF文件" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Margin="0,12" Orientation="Horizontal">
|
|
|
- <RadioButton VerticalAlignment="Center" Content="平均拆分为" />
|
|
|
- <ComboBox Width="110" Margin="8,0" />
|
|
|
- <TextBlock VerticalAlignment="Center" Text="个PDF文件" />
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
|
|
|
- <RadioButton VerticalAlignment="Center" Content="按页面范围拆分" />
|
|
|
- <ComboBox Width="110" Margin="8,0" />
|
|
|
- </StackPanel>
|
|
|
- </StackPanel>
|
|
|
- <StackPanel Grid.Row="2" Margin="16,0">
|
|
|
- <TextBlock
|
|
|
- FontSize="14"
|
|
|
- FontWeight="SemiBold"
|
|
|
- Text="文档命名" />
|
|
|
- <TextBox
|
|
|
- Width="346"
|
|
|
- Height="32"
|
|
|
- HorizontalAlignment="Left" />
|
|
|
- <CheckBox Margin="0,6" Content="将原始文档名前置" />
|
|
|
-
|
|
|
-
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <CheckBox
|
|
|
- Width="{Binding ElementName=ChkSeparator, Path=ActualWidth}"
|
|
|
- Margin="0,6"
|
|
|
- Content="标签" />
|
|
|
- <TextBox
|
|
|
- Width="110"
|
|
|
- Height="32"
|
|
|
- Margin="16,0" />
|
|
|
+ <cus:DialogContent Header="拆分页面">
|
|
|
+ <cus:DialogContent.Content>
|
|
|
+ <Grid>
|
|
|
+ <Grid.RowDefinitions>
|
|
|
+ <RowDefinition />
|
|
|
+ <RowDefinition />
|
|
|
+ </Grid.RowDefinitions>
|
|
|
+ <StackPanel Margin="16,0">
|
|
|
+ <TextBlock
|
|
|
+ FontSize="14"
|
|
|
+ FontWeight="SemiBold"
|
|
|
+ Text="拆分方式" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <RadioButton Margin="0,12,0,0" Content="平均每" />
|
|
|
+ <TextBox
|
|
|
+ Width="110"
|
|
|
+ Height="32"
|
|
|
+ Margin="8,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="页拆分为一个PDF文件" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Margin="0,12" Orientation="Horizontal">
|
|
|
+ <RadioButton VerticalAlignment="Center" Content="平均拆分为" />
|
|
|
+ <ComboBox Width="110" Margin="8,0" />
|
|
|
+ <TextBlock VerticalAlignment="Center" Text="个PDF文件" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
|
|
|
+ <RadioButton VerticalAlignment="Center" Content="按页面范围拆分" />
|
|
|
+ <ComboBox Width="110" Margin="8,0" />
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <CheckBox
|
|
|
- Name="ChkSeparator"
|
|
|
- Margin="0,6"
|
|
|
- Content="分隔符" />
|
|
|
+ <StackPanel Grid.Row="1" Margin="16,0">
|
|
|
+ <TextBlock
|
|
|
+ FontSize="14"
|
|
|
+ FontWeight="SemiBold"
|
|
|
+ Text="文档命名" />
|
|
|
<TextBox
|
|
|
- Width="110"
|
|
|
+ Width="346"
|
|
|
Height="32"
|
|
|
- Margin="16,0" />
|
|
|
- </StackPanel>
|
|
|
+ HorizontalAlignment="Left" />
|
|
|
+ <CheckBox Margin="0,6" Content="将原始文档名前置" />
|
|
|
+
|
|
|
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CheckBox
|
|
|
+ Width="{Binding ElementName=ChkSeparator, Path=ActualWidth}"
|
|
|
+ Margin="0,6"
|
|
|
+ Content="标签" />
|
|
|
+ <TextBox
|
|
|
+ Width="110"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0" />
|
|
|
+ </StackPanel>
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <CheckBox
|
|
|
+ Name="ChkSeparator"
|
|
|
+ Margin="0,6"
|
|
|
+ Content="分隔符" />
|
|
|
+ <TextBox
|
|
|
+ Width="110"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0" />
|
|
|
+ </StackPanel>
|
|
|
|
|
|
- <StackPanel Orientation="Horizontal">
|
|
|
- <RadioButton Margin="0,12,0,16" Content="纵向页面" />
|
|
|
- <RadioButton Margin="24,12,0,16" Content="横向页面" />
|
|
|
+ <StackPanel Orientation="Horizontal">
|
|
|
+ <RadioButton Margin="0,12,0,16" Content="纵向页面" />
|
|
|
+ <RadioButton Margin="24,12,0,16" Content="横向页面" />
|
|
|
+ </StackPanel>
|
|
|
</StackPanel>
|
|
|
- </StackPanel>
|
|
|
- <Border Grid.Row="3" BorderThickness="0,1,0,0">
|
|
|
- <Border.BorderBrush>
|
|
|
- <SolidColorBrush Opacity="0.8" Color="White" />
|
|
|
- </Border.BorderBrush>
|
|
|
- <Grid>
|
|
|
- <Button
|
|
|
- Width="98"
|
|
|
- Height="32"
|
|
|
- Margin="124,0"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Content="取消" />
|
|
|
- <Button
|
|
|
- Width="98"
|
|
|
- Height="32"
|
|
|
- Margin="16,0"
|
|
|
- HorizontalAlignment="Right"
|
|
|
- Content="插入" />
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
- </Grid>
|
|
|
- </Border>
|
|
|
+ </Grid>
|
|
|
+ </cus:DialogContent.Content>
|
|
|
+ <cus:DialogContent.BottmBar>
|
|
|
+ <Grid>
|
|
|
+ <Button
|
|
|
+ Width="98"
|
|
|
+ Height="32"
|
|
|
+ Margin="16,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Command="{Binding CancelCommand}"
|
|
|
+ Content="取消" />
|
|
|
+ <Button
|
|
|
+ Width="98"
|
|
|
+ Height="32"
|
|
|
+ Margin="124,0"
|
|
|
+ HorizontalAlignment="Right"
|
|
|
+ Command="{Binding SplitCommnad}"
|
|
|
+ Content="拆分" />
|
|
|
+ </Grid>
|
|
|
+ </cus:DialogContent.BottmBar>
|
|
|
+ </cus:DialogContent>
|
|
|
</UserControl>
|