HomePageExtractDialog.xaml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <UserControl x:Class="PDF_Office.Views.Dialog.HomePageToolsDialogs.HomePageExtractDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  7. xmlns:prism="http://prismlibrary.com/"
  8. prism:ViewModelLocator.AutoWireViewModel="True"
  9. Height="404"
  10. Width="490"
  11. d:DesignHeight="404"
  12. d:DesignWidth="490"
  13. mc:Ignorable="d">
  14. <Grid>
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="50"></RowDefinition>
  17. <RowDefinition Height="*"></RowDefinition>
  18. <RowDefinition Height="63"></RowDefinition>
  19. </Grid.RowDefinitions>
  20. <TextBlock Grid.Row="0" Text="提取" FontSize="20" FontWeight="ExtraBlack" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="20,0,0,0" Height="28" Width="120"/>
  21. <Border Grid.Row="1" BorderBrush="Gray" BorderThickness="0,1,0,1" VerticalAlignment="Center" Height="291">
  22. <Grid>
  23. <Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="212"/>
  25. <ColumnDefinition Width="*"/>
  26. </Grid.ColumnDefinitions>
  27. <Grid Grid.Column="0">
  28. <cus:PageTurningPreview x:Name="ExtractPreview" Loaded="PageTurningPreview_Loaded" ></cus:PageTurningPreview>
  29. </Grid>
  30. <Grid Grid.Column="1">
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="5*"/>
  33. <RowDefinition Height="5*"/>
  34. </Grid.RowDefinitions>
  35. <Grid Grid.Row="0">
  36. <StackPanel Orientation="Vertical" Margin="0,40,0,0">
  37. <TextBlock Text="页面范围" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
  38. <cus:WritableComboBox Width="208" Height="32" HorizontalAlignment="Left" Margin="0,20,0,0" Text="{Binding PageRangeText,Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex,Mode=TwoWay}"></cus:WritableComboBox>
  39. </StackPanel>
  40. </Grid>
  41. <Grid Grid.Row="1">
  42. <StackPanel Orientation="Vertical">
  43. <TextBlock Text="页面范围" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
  44. <CheckBox Margin="0,20,0,0" Command="{Binding ExtractToSingleFileCommand}" IsChecked="{Binding ExtractToSingleFileIsCheck}">
  45. <TextBlock Text="每个页面作为单独页面"></TextBlock>
  46. </CheckBox>
  47. <CheckBox Margin="0,20,0,0" Command="{Binding DeleteAfterExtractCommand}" IsChecked="{Binding DeleteAfterExtractIsCheck}">
  48. <TextBlock Text="提取后删除页面"></TextBlock>
  49. </CheckBox>
  50. </StackPanel>
  51. </Grid>
  52. </Grid>
  53. </Grid>
  54. </Border>
  55. <Grid Grid.Row="2">
  56. <Button
  57. Width="98"
  58. Height="32"
  59. Margin="0,0,124,0"
  60. HorizontalAlignment="Right"
  61. Command="{Binding ExtractCommand}"
  62. Content="提取" />
  63. <Button
  64. Width="98"
  65. Height="32"
  66. Margin="16,0"
  67. HorizontalAlignment="Right"
  68. Command="{Binding CancelCommand}"
  69. Content="取消" />
  70. </Grid>
  71. </Grid>
  72. </UserControl>