SplitDialog.xaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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,4,16,0">
  27. <TextBlock
  28. Margin="0,12"
  29. FontSize="14"
  30. FontWeight="SemiBold"
  31. Text="拆分方式" />
  32. <StackPanel Orientation="Horizontal">
  33. <RadioButton
  34. Name="RbtnPage"
  35. Margin="0,12,0,0"
  36. Content="平均每"
  37. IsChecked="True" />
  38. <TextBox
  39. Width="110"
  40. Height="32"
  41. Margin="8,0"
  42. IsEnabled="{Binding ElementName=RbtnPage, Path=IsChecked}" />
  43. <TextBlock VerticalAlignment="Center" Text="页拆分为一个PDF文件" />
  44. </StackPanel>
  45. <StackPanel Margin="0,12" Orientation="Horizontal">
  46. <RadioButton
  47. Name="RbtnPdf"
  48. VerticalAlignment="Center"
  49. Content="平均拆分为" />
  50. <ComboBox
  51. Width="110"
  52. Margin="8,0"
  53. IsEnabled="{Binding ElementName=RbtnPdf, Path=IsChecked}" />
  54. <TextBlock VerticalAlignment="Center" Text="个PDF文件" />
  55. </StackPanel>
  56. <StackPanel Margin="0,0,0,12" Orientation="Horizontal">
  57. <RadioButton
  58. x:Name="RbtnPagerange"
  59. VerticalAlignment="Center"
  60. Content="按页面范围拆分" />
  61. <ComboBox
  62. Width="110"
  63. Margin="8,0"
  64. IsEnabled="{Binding ElementName=RbtnPagerange, Path=IsChecked}" />
  65. </StackPanel>
  66. </StackPanel>
  67. <StackPanel Grid.Row="1" Margin="16,0">
  68. <TextBlock
  69. FontSize="14"
  70. FontWeight="SemiBold"
  71. Text="文档命名" />
  72. <TextBox
  73. Width="346"
  74. Height="32"
  75. HorizontalAlignment="Left"
  76. Focusable="False"
  77. IsReadOnly="True" />
  78. <CheckBox
  79. Margin="0,6"
  80. Content="将原始文档名前置"
  81. IsChecked="True" />
  82. <StackPanel Orientation="Horizontal">
  83. <CheckBox
  84. Name="ChkSign"
  85. Width="{Binding ElementName=ChkSeparator, Path=ActualWidth}"
  86. Margin="0,6"
  87. Content="标签"
  88. IsChecked="True" />
  89. <TextBox
  90. Width="110"
  91. Height="32"
  92. Margin="16,0"
  93. IsEnabled="{Binding ElementName=ChkSign, Path=IsChecked}" />
  94. </StackPanel>
  95. <StackPanel Orientation="Horizontal">
  96. <CheckBox
  97. Name="ChkSeparator"
  98. Margin="0,6"
  99. Content="分隔符"
  100. IsChecked="True" />
  101. <TextBox
  102. Width="110"
  103. Height="32"
  104. Margin="16,0"
  105. IsEnabled="{Binding ElementName=ChkSeparator, Path=IsChecked}" />
  106. </StackPanel>
  107. </StackPanel>
  108. </Grid>
  109. </cus:DialogContent.Content>
  110. <cus:DialogContent.BottmBar>
  111. <Grid>
  112. <Button
  113. Width="98"
  114. Height="32"
  115. Margin="16,0"
  116. HorizontalAlignment="Right"
  117. Command="{Binding CancelCommand}"
  118. Content="取消" />
  119. <Button
  120. Width="98"
  121. Height="32"
  122. Margin="124,0"
  123. HorizontalAlignment="Right"
  124. Command="{Binding SplitCommnad}"
  125. Content="拆分" />
  126. </Grid>
  127. </cus:DialogContent.BottmBar>
  128. </cus:DialogContent>
  129. </UserControl>