SplitDialog.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <UserControl
  2. x:Class="PDF_Office.Views.Dialog.PageEditDialogs.SplitDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.PageEditDialogs"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pageeditdialogs="clr-namespace:PDF_Office.ViewModels.Dialog.PageEditDialogs"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="480"
  12. Height="481"
  13. d:DataContext="{d:DesignInstance Type=pageeditdialogs:SplitDialogViewModel}"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. mc:Ignorable="d">
  19. <cus:DialogContent Header="拆分页面">
  20. <cus:DialogContent.Content>
  21. <Grid>
  22. <Grid.RowDefinitions>
  23. <RowDefinition />
  24. <RowDefinition />
  25. </Grid.RowDefinitions>
  26. <StackPanel Margin="16,0">
  27. <TextBlock
  28. FontSize="14"
  29. FontWeight="SemiBold"
  30. Text="拆分方式" />
  31. <StackPanel Orientation="Horizontal">
  32. <RadioButton Margin="0,12,0,0" Content="平均每" />
  33. <TextBox
  34. Width="110"
  35. Height="32"
  36. Margin="8,0" />
  37. <TextBlock VerticalAlignment="Center" Text="页拆分为一个PDF文件" />
  38. </StackPanel>
  39. <StackPanel Margin="0,12" Orientation="Horizontal">
  40. <RadioButton VerticalAlignment="Center" Content="平均拆分为" />
  41. <ComboBox Width="110" Margin="8,0" />
  42. <TextBlock VerticalAlignment="Center" Text="个PDF文件" />
  43. </StackPanel>
  44. <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
  45. <RadioButton VerticalAlignment="Center" Content="按页面范围拆分" />
  46. <ComboBox Width="110" Margin="8,0" />
  47. </StackPanel>
  48. </StackPanel>
  49. <StackPanel Grid.Row="1" Margin="16,0">
  50. <TextBlock
  51. FontSize="14"
  52. FontWeight="SemiBold"
  53. Text="文档命名" />
  54. <TextBox
  55. Width="346"
  56. Height="32"
  57. HorizontalAlignment="Left" />
  58. <CheckBox Margin="0,6" Content="将原始文档名前置" />
  59. <StackPanel Orientation="Horizontal">
  60. <CheckBox
  61. Width="{Binding ElementName=ChkSeparator, Path=ActualWidth}"
  62. Margin="0,6"
  63. Content="标签" />
  64. <TextBox
  65. Width="110"
  66. Height="32"
  67. Margin="16,0" />
  68. </StackPanel>
  69. <StackPanel Orientation="Horizontal">
  70. <CheckBox
  71. Name="ChkSeparator"
  72. Margin="0,6"
  73. Content="分隔符" />
  74. <TextBox
  75. Width="110"
  76. Height="32"
  77. Margin="16,0" />
  78. </StackPanel>
  79. <StackPanel Orientation="Horizontal">
  80. <RadioButton Margin="0,12,0,16" Content="纵向页面" />
  81. <RadioButton Margin="24,12,0,16" Content="横向页面" />
  82. </StackPanel>
  83. </StackPanel>
  84. </Grid>
  85. </cus:DialogContent.Content>
  86. <cus:DialogContent.BottmBar>
  87. <Grid>
  88. <Button
  89. Width="98"
  90. Height="32"
  91. Margin="16,0"
  92. HorizontalAlignment="Right"
  93. Command="{Binding CancelCommand}"
  94. Content="取消" />
  95. <Button
  96. Width="98"
  97. Height="32"
  98. Margin="124,0"
  99. HorizontalAlignment="Right"
  100. Command="{Binding SplitCommnad}"
  101. Content="拆分" />
  102. </Grid>
  103. </cus:DialogContent.BottmBar>
  104. </cus:DialogContent>
  105. </UserControl>