PageMarkDialog.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 Height="22" IsChecked="True" VerticalContentAlignment="Center" Content="Mark current page" />
  21. <RadioButton Height="22" VerticalContentAlignment="Center" Margin="0,8" Content="Mark all page" />
  22. <RadioButton Height="22" VerticalContentAlignment="Center" Content="Mark odd page" />
  23. <RadioButton Height="22" VerticalContentAlignment="Center" Margin="0,8" Content="Mark even page" />
  24. <RadioButton Name="RbtnCustomPage" Height="22" VerticalContentAlignment="Center" Content="Mark specific page range" />
  25. <StackPanel
  26. Margin="0,8"
  27. HorizontalAlignment="Left"
  28. VerticalAlignment="Center"
  29. Orientation="Horizontal">
  30. <cus:TextBoxEx
  31. Width="228"
  32. Height="32"
  33. CornerRadius="4"
  34. IsEnabled="{Binding ElementName=RbtnCustomPage, Path=IsChecked}"
  35. PlaceholderText="e.g. 1,3-5,10" />
  36. <TextBlock
  37. Margin="8,0,0,0"
  38. VerticalAlignment="Center"
  39. Text="/" />
  40. </StackPanel>
  41. </StackPanel>
  42. <cus:DialogContent.BottmBar>
  43. <StackPanel
  44. Margin="16,0"
  45. HorizontalAlignment="Right"
  46. Orientation="Horizontal">
  47. <Button
  48. Width="80"
  49. Height="32"
  50. Content="Apply"
  51. Style="{StaticResource Btn.cta}" />
  52. <Button
  53. Width="80"
  54. Height="32"
  55. Margin="16,0,0,0"
  56. Content="Cancel"
  57. Style="{StaticResource btn.sec}" />
  58. </StackPanel>
  59. </cus:DialogContent.BottmBar>
  60. </cus:DialogContent>
  61. </UserControl>