RepeatMarkDialog.xaml 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.Redaction.RepeatMarkDialog"
  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_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:prism="http://prismlibrary.com/"
  9. xmlns:redaction="clr-namespace:PDF_Master.ViewModels.Dialog.Redaction"
  10. Width="432"
  11. Height="236"
  12. d:DataContext="{d:DesignInstance Type=redaction:RepeatMarkDialogViewModel}"
  13. d:DesignHeight="450"
  14. d:DesignWidth="800"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. Background="{StaticResource color.sys.layout.anti}"
  18. mc:Ignorable="d">
  19. <cus:DialogContent Header="Reapet Mark Across Pages">
  20. <StackPanel Margin="16,0">
  21. <RadioButton
  22. Height="22"
  23. VerticalContentAlignment="Center"
  24. Command="{Binding CheckedCommand}"
  25. CommandParameter="All"
  26. Content="All Pages"
  27. GroupName="Page"
  28. IsChecked="True" />
  29. <RadioButton
  30. Height="22"
  31. Margin="0,8"
  32. VerticalContentAlignment="Center"
  33. Command="{Binding CheckedCommand}"
  34. CommandParameter="Odd"
  35. Content="Odd Pages"
  36. GroupName="Page" />
  37. <RadioButton
  38. Height="22"
  39. VerticalContentAlignment="Center"
  40. Command="{Binding CheckedCommand}"
  41. CommandParameter="Even"
  42. Content="Even Pages"
  43. GroupName="Page" />
  44. <StackPanel
  45. Margin="0,7"
  46. HorizontalAlignment="Left"
  47. VerticalAlignment="Center"
  48. Orientation="Horizontal">
  49. <RadioButton
  50. Name="RbtnCustomPage"
  51. Height="22"
  52. VerticalContentAlignment="Center"
  53. Command="{Binding CheckedCommand}"
  54. CommandParameter="Custom"
  55. Content="Custom"
  56. GroupName="Page" />
  57. <cus:TextBoxEx
  58. Width="228"
  59. Height="32"
  60. Margin="8,0,0,0"
  61. CornerRadius="4"
  62. IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
  63. PlaceholderText="e.g. 1,3-5,10"
  64. PreviewKeyDown="TextBoxEx_PreviewKeyDown"
  65. Text="{Binding InputString, Mode=TwoWay, UpdateSourceTrigger=LostFocus}" />
  66. <TextBlock
  67. Name="TbSeparator"
  68. Margin="8,0,0,0"
  69. VerticalAlignment="Center"
  70. FocusVisualStyle="{x:Null}"
  71. Text="/ " />
  72. <TextBlock VerticalAlignment="Center" Text="{Binding PageCount}" />
  73. </StackPanel>
  74. </StackPanel>
  75. <cus:DialogContent.BottmBar>
  76. <StackPanel
  77. Margin="16,0"
  78. HorizontalAlignment="Right"
  79. Orientation="Horizontal">
  80. <Button
  81. Width="80"
  82. Height="32"
  83. Command="{Binding OkCommand}"
  84. Content="Apply"
  85. Style="{StaticResource Btn.cta}" />
  86. <Button
  87. Width="80"
  88. Height="32"
  89. Margin="16,0,0,0"
  90. Command="{Binding CancelCommand}"
  91. Content="Cancel"
  92. Style="{StaticResource btn.sec}" />
  93. </StackPanel>
  94. </cus:DialogContent.BottmBar>
  95. </cus:DialogContent>
  96. </UserControl>