12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePageSplitDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:cus="clr-namespace:PDF_Office.CustomControl"
- xmlns:prism="http://prismlibrary.com/"
- prism:ViewModelLocator.AutoWireViewModel="True"
- Height="521"
- Width="583"
- d:DesignHeight="521"
- d:DesignWidth="583"
- mc:Ignorable="d">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="48"></RowDefinition>
- <RowDefinition Height="*"></RowDefinition>
- <RowDefinition Height="64"></RowDefinition>
- </Grid.RowDefinitions>
- <TextBlock Grid.Row="0" Text="拆分" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
- <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="409">
- <Grid >
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="212"/>
- <ColumnDefinition Width="*"/>
- </Grid.ColumnDefinitions>
- <Grid Grid.Column="0" VerticalAlignment="Top">
- <cus:PageTurningPreview x:Name="SplitPreview" Loaded="PageTurningPreview_Loaded" ></cus:PageTurningPreview>
- </Grid>
- <Grid Grid.Column="1" Margin="7,20,10,40">
- <Grid.RowDefinitions>
- <RowDefinition Height="4*"></RowDefinition>
- <RowDefinition Height="4*"></RowDefinition>
- </Grid.RowDefinitions>
- <Grid Grid.Row="0">
- <StackPanel Orientation="Vertical" >
- <TextBlock Text="拆分方式" Height="22" Width="56" HorizontalAlignment="Left" Margin="0,0,0,17"></TextBlock>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,8">
- <RadioButton VerticalAlignment="Center" IsChecked="{Binding AveragePagesIsCheck}" Command="{Binding AveragePagesCommand}"></RadioButton>
- <TextBlock Text="平均每" VerticalAlignment="Center"></TextBlock>
- <cus:NumericUpDown Height="32" Width="110" Text="{Binding AveragePagesText,Mode=TwoWay}" IsEnabled="{Binding AveragePagesIsEnabled}"></cus:NumericUpDown>
- <TextBlock Text="页拆分为一个文件" VerticalAlignment="Center"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,8">
- <RadioButton VerticalAlignment="Center" IsChecked="{Binding AverageFilesIsCheck}" Command="{Binding AverageFilesCommand}"></RadioButton>
- <TextBlock Text="平均拆分为" VerticalAlignment="Center"></TextBlock>
- <cus:NumericUpDown Height="32" Width="110" Text="{Binding AverageFilesText,Mode=TwoWay}" IsEnabled="{Binding AverageFilesIsEnabled}"></cus:NumericUpDown>
- <TextBlock Text="个PDF文件"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <RadioButton VerticalAlignment="Center" IsChecked="{Binding CustomPageRangeIsCheck}" Command="{Binding CustomPageRangeCommand}"></RadioButton>
- <TextBlock Text="按特定页面拆分" VerticalAlignment="Center"></TextBlock>
- <cus:WritableComboBox x:Name="PageRangeComboBox" Height="32" Width="183" Text="{Binding PageRangeText, Mode=TwoWay}" IsEnabled="{Binding CustomPageRangeIsEnabled}" SelectedIndex="{Binding PageRangeSelectIndex, Mode=TwoWay}" Loaded="WritableComboBox_Loaded"/>
- </StackPanel>
- </StackPanel>
- </Grid>
- <Grid Grid.Row="1">
- <StackPanel Orientation="Vertical">
- <TextBlock Text="文档命名" Height="22" Width="56" HorizontalAlignment="Left"></TextBlock>
- <TextBlock Height="32" Width="303" Margin="0,0,0,6" Text="{Binding FilePathName}"></TextBlock>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,13">
- <CheckBox Margin="0,0,11,0" Command="{Binding FrontFileNameCommand}" IsChecked="{Binding FrontFileIsCheck}"></CheckBox>
- <TextBlock Text="将原始文档名前置"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal" Margin="0,0,0,8">
- <CheckBox VerticalAlignment="Center" Margin="0,0,11,0" Command="{Binding FileNameLabelCommand}" IsChecked="{Binding FileNameLabelIsCheck}"></CheckBox>
- <TextBlock Text="标签" VerticalAlignment="Center" Margin="0,0,30,0"></TextBlock>
- <TextBox x:Name="FileNameLabelTextBox" Height="32" Width="110" Text="{Binding FileNameLabelText}" TextChanged="TextBox_TextChanged" IsEnabled="{Binding FileNameLabelIsEnabled}"></TextBox>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <CheckBox VerticalAlignment="Center" Margin="0,0,11,0" Command="{Binding FileNameDeimiterCommand}" IsChecked="{Binding FileNameDeimiterIsCheck}"></CheckBox>
- <TextBlock Text="分隔符" VerticalAlignment="Center" Margin="0,0,18,0"></TextBlock>
- <TextBox x:Name="FileNameDeimiterTextBox" Height="32" Width="110" Text="{Binding FileNameDeimiterText}" TextChanged="TextBox_TextChanged" IsEnabled="{Binding FileNameDeimiterIsEnabled}"></TextBox>
- </StackPanel>
- </StackPanel>
- </Grid>
- </Grid>
- </Grid>
- </Border>
- <Grid Grid.Row="2">
- <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 SplitCommand}"
- Content="拆分" />
- </Grid>
- </Grid>
- </UserControl>
|