HomePageExtractDialog.xaml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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:i="http://schemas.microsoft.com/xaml/behaviors"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  8. xmlns:prism="http://prismlibrary.com/"
  9. prism:ViewModelLocator.AutoWireViewModel="True"
  10. Height="404"
  11. Width="490"
  12. d:DesignHeight="404"
  13. d:DesignWidth="490"
  14. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  15. mc:Ignorable="d">
  16. <cus:DialogContent Header="提取">
  17. <cus:DialogContent.Content>
  18. <Grid Grid.Row="1">
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="291"></RowDefinition>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="212"/>
  24. <ColumnDefinition Width="*"/>
  25. </Grid.ColumnDefinitions>
  26. <Grid Grid.Column="0">
  27. <cus:PageTurningPreview x:Name="ExtractPreview" Loaded="PageTurningPreview_Loaded" ></cus:PageTurningPreview>
  28. </Grid>
  29. <Grid Grid.Column="1">
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="5*"/>
  32. <RowDefinition Height="5*"/>
  33. </Grid.RowDefinitions>
  34. <Grid Grid.Row="0">
  35. <StackPanel Orientation="Vertical" Margin="0,40,0,0">
  36. <TextBlock Text="页面范围" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
  37. <cus:WritableComboBox x:Name="PageRangeComboBox" Width="208" Height="32" HorizontalAlignment="Left" Margin="0,20,0,0" Text="{Binding PageRangeText,Mode=TwoWay}" SelectedIndex="{Binding PageRangeSelectIndex,Mode=TwoWay}" >
  38. <i:Interaction.Triggers>
  39. <i:EventTrigger EventName="SelectionChanged">
  40. <i:InvokeCommandAction Command="{Binding CmbPageSelectionChanged}" CommandParameter="{Binding ElementName=ExtractPreview}" />
  41. </i:EventTrigger>
  42. <i:EventTrigger EventName="TextChanged">
  43. <i:InvokeCommandAction Command="{Binding CmbPageTextChanged}" CommandParameter="{Binding ElementName=ExtractPreview}" />
  44. </i:EventTrigger>
  45. </i:Interaction.Triggers>
  46. </cus:WritableComboBox>
  47. </StackPanel>
  48. </Grid>
  49. <Grid Grid.Row="1">
  50. <StackPanel Orientation="Vertical">
  51. <TextBlock Text="页面范围" FontWeight="ExtraBlack" Width="56" Height="22" HorizontalAlignment="Left"/>
  52. <CheckBox Margin="0,20,0,0" Command="{Binding ExtractToSingleFileCommand}" IsChecked="{Binding ExtractToSingleFileIsCheck}">
  53. <TextBlock Text="每个页面作为单独页面"></TextBlock>
  54. </CheckBox>
  55. <CheckBox Margin="0,20,0,0" Command="{Binding DeleteAfterExtractCommand}" IsChecked="{Binding DeleteAfterExtractIsCheck}">
  56. <TextBlock Text="提取后删除页面"></TextBlock>
  57. </CheckBox>
  58. </StackPanel>
  59. </Grid>
  60. </Grid>
  61. </Grid>
  62. </cus:DialogContent.Content>
  63. <cus:DialogContent.BottmBar>
  64. <Grid>
  65. <Button
  66. Width="98"
  67. Height="32"
  68. Margin="0,0,124,0"
  69. HorizontalAlignment="Right"
  70. Command="{Binding ExtractCommand}"
  71. Content="提取" />
  72. <Button
  73. Width="98"
  74. Height="32"
  75. Margin="16,0"
  76. HorizontalAlignment="Right"
  77. Command="{Binding CancelCommand}"
  78. Content="取消" />
  79. </Grid>
  80. </cus:DialogContent.BottmBar>
  81. </cus:DialogContent>
  82. </UserControl>