PageMarkDialog.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <UserControl
  2. x:Class="PDF_Office.Views.Dialog.Redaction.PageMarkDialog"
  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.Redaction"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="432"
  11. Height="296"
  12. d:DesignHeight="450"
  13. d:DesignWidth="800"
  14. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. Background="{StaticResource color.sys.layout.anti}"
  17. mc:Ignorable="d">
  18. <cus:DialogContent Header="Mark Page Range">
  19. <StackPanel Margin="16,0">
  20. <RadioButton
  21. Height="22"
  22. VerticalContentAlignment="Center"
  23. Content="Mark current page"
  24. IsChecked="True" />
  25. <RadioButton
  26. Height="22"
  27. Margin="0,8"
  28. VerticalContentAlignment="Center"
  29. Content="Mark all page" />
  30. <RadioButton
  31. Height="22"
  32. VerticalContentAlignment="Center"
  33. Content="Mark odd page" />
  34. <RadioButton
  35. Height="22"
  36. Margin="0,8"
  37. VerticalContentAlignment="Center"
  38. Content="Mark even page" />
  39. <RadioButton
  40. Name="RbtnCustomPage"
  41. Height="22"
  42. VerticalContentAlignment="Center"
  43. Content="Mark specific page range" />
  44. <StackPanel
  45. Margin="0,8"
  46. HorizontalAlignment="Left"
  47. VerticalAlignment="Center"
  48. Orientation="Horizontal">
  49. <cus:TextBoxEx
  50. Width="228"
  51. Height="32"
  52. CornerRadius="4"
  53. IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
  54. PlaceholderText="e.g. 1,3-5,10" />
  55. <TextBlock
  56. Margin="8,0,0,0"
  57. VerticalAlignment="Center"
  58. Text="/" />
  59. </StackPanel>
  60. </StackPanel>
  61. <cus:DialogContent.BottmBar>
  62. <StackPanel VerticalAlignment="Center">
  63. <StackPanel
  64. Margin="16,0"
  65. HorizontalAlignment="Right"
  66. Orientation="Horizontal">
  67. <Button
  68. Width="80"
  69. Height="32"
  70. Content="Apply"
  71. Style="{StaticResource Btn.cta}" />
  72. <Button
  73. Width="80"
  74. Height="32"
  75. Margin="16,0,0,0"
  76. Content="Cancel"
  77. Style="{StaticResource btn.sec}" />
  78. </StackPanel>
  79. </StackPanel>
  80. </cus:DialogContent.BottmBar>
  81. </cus:DialogContent>
  82. </UserControl>