RedactionContent.xaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <UserControl
  2. x:Class="PDF_Office.Views.EditTools.Redaction.RedactionContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  7. xmlns:prism="http://prismlibrary.com/"
  8. xmlns:redaction="clr-namespace:PDF_Office.ViewModels.EditTools.Redaction"
  9. d:DataContext="{d:DesignInstance Type=redaction:RedactionContentViewModel}"
  10. d:DesignHeight="760"
  11. d:DesignWidth="1280"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. mc:Ignorable=" d">
  14. <UserControl.Resources>
  15. <ResourceDictionary>
  16. <Style BasedOn="{StaticResource RectangleRadionButtonWithCorner}" TargetType="{x:Type RadioButton}">
  17. <Setter Property="Width" Value="auto" />
  18. <Setter Property="Height" Value="28" />
  19. <Setter Property="Margin" Value="4,6" />
  20. <Setter Property="Background" Value="Transparent" />
  21. </Style>
  22. </ResourceDictionary>
  23. </UserControl.Resources>
  24. <Grid Background="{StaticResource color.sys.layout.mg}">
  25. <Grid.RowDefinitions>
  26. <RowDefinition Height="40" />
  27. <RowDefinition />
  28. </Grid.RowDefinitions>
  29. <Grid>
  30. <TextBlock
  31. Margin="16,0,0,0"
  32. VerticalAlignment="Center"
  33. FontFamily="Segoe UI"
  34. FontSize="14"
  35. FontWeight="SemiBold"
  36. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  37. Text="Redact" />
  38. <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
  39. <ToggleButton
  40. Width="auto"
  41. Height="28"
  42. Padding="4,0"
  43. IsChecked="True"
  44. Style="{StaticResource SubToolbarTgb}">
  45. <StackPanel Orientation="Horizontal">
  46. <Path
  47. Width="20"
  48. Height="20"
  49. Data="M0.75 4H20.75V2H0.75V4ZM0.75 11H9.75V9H0.75V11ZM9.75 18H0.75V16H9.75V18ZM13.75 6C13.1977 6 12.75 6.44771 12.75 7V17C12.75 17.5523 13.1977 18 13.75 18H19.75C20.3023 18 20.75 17.5523 20.75 17V7C20.75 6.44772 20.3023 6 19.75 6H13.75Z"
  50. Fill="{StaticResource color.icon.base.brand}" />
  51. <TextBlock
  52. Margin="4,0,0,0"
  53. VerticalAlignment="Center"
  54. Text="Redact Text Image" />
  55. </StackPanel>
  56. </ToggleButton>
  57. <Button
  58. Width="auto"
  59. Height="28"
  60. Margin="8,0"
  61. Padding="4,0"
  62. Command="{Binding PageRedactionCommand}"
  63. Style="{StaticResource subToolBar}">
  64. <StackPanel Orientation="Horizontal">
  65. <Path
  66. Width="20"
  67. Height="20"
  68. Data="M16.75 18H4.75V2H12.6171L16.75 6.74847V18ZM2.75 2C2.75 0.895431 3.64543 0 4.75 0H12.6171C13.1956 0 13.7458 0.250541 14.1257 0.686951L18.2586 5.43542C18.5755 5.79948 18.75 6.26584 18.75 6.74847V18C18.75 19.1046 17.8546 20 16.75 20H4.75C3.64543 20 2.75 19.1046 2.75 18V2ZM11.95 4H6.75V16H14.75V7.42857L11.95 4Z"
  69. Fill="{StaticResource color.icon.base.brand}" />
  70. <TextBlock
  71. Margin="4,0,0,0"
  72. VerticalAlignment="Center"
  73. Text="Redact Page" />
  74. </StackPanel>
  75. </Button>
  76. </StackPanel>
  77. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  78. <Button
  79. Height="24"
  80. Margin="8,0"
  81. Padding="8,0"
  82. Content="应用密文"
  83. Command="{Binding ApplyCommmand}"
  84. Style="{StaticResource Btn.cta}" />
  85. <Button
  86. Height="24"
  87. Margin="8,0"
  88. Padding="8,0"
  89. Content="擦除密文"
  90. Command="{Binding RemoveCommand}"
  91. Style="{StaticResource Btn.cta}" />
  92. <Button
  93. Width="auto"
  94. Height="24"
  95. Margin="8,0,16,0"
  96. Padding="8,0"
  97. Command="{Binding CloseEditToolCommand}"
  98. Content="关闭"
  99. Style="{StaticResource btn.sec}" />
  100. </StackPanel>
  101. </Grid>
  102. <Grid Grid.Row="1" Background="#E7E9EC">
  103. <Grid>
  104. <ContentControl prism:RegionManager.RegionName="{Binding RedactionDocumentRegionName}" />
  105. </Grid>
  106. </Grid>
  107. </Grid>
  108. </UserControl>