RedactionContent.xaml 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. <Grid Background="#FFFFFF">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="40" />
  17. <RowDefinition />
  18. </Grid.RowDefinitions>
  19. <Grid>
  20. <WrapPanel HorizontalAlignment="Center">
  21. <Button Style="{StaticResource InsideBarBtnStyle}">
  22. <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
  23. <StackPanel Margin="0,0,8,0">
  24. <Border
  25. Width="30"
  26. Height="30"
  27. Background="LightSeaGreen" />
  28. </StackPanel>
  29. <TextBlock VerticalAlignment="Center" Text="文本和图像标记密文" />
  30. </StackPanel>
  31. </Button>
  32. <Button Style="{StaticResource InsideBarBtnStyle}">
  33. <StackPanel Margin="12,0,12,0" Orientation="Horizontal">
  34. <StackPanel Margin="0,0,8,0">
  35. <Border
  36. Width="30"
  37. Height="30"
  38. Background="LightSeaGreen" />
  39. </StackPanel>
  40. <TextBlock VerticalAlignment="Center" Text="页面标记密文" />
  41. </StackPanel>
  42. </Button>
  43. </WrapPanel>
  44. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  45. <Button
  46. Height="24"
  47. Margin="8,0"
  48. Padding="8,0"
  49. Content="应用密文"
  50. Style="{StaticResource Btn.cta}" />
  51. <Button
  52. Height="24"
  53. Margin="8,0"
  54. Padding="8,0"
  55. Content="擦除密文"
  56. Style="{StaticResource Btn.cta}" />
  57. <Button
  58. Width="auto"
  59. Height="24"
  60. Margin="8,0,16,0"
  61. Padding="8,0"
  62. Command="{Binding CloseEditToolCommand}"
  63. Content="关闭"
  64. Style="{StaticResource btn.sec}" />
  65. </StackPanel>
  66. </Grid>
  67. <Grid Grid.Row="1" Background="#E7E9EC">
  68. <Grid>
  69. <ContentControl prism:RegionManager.RegionName="{Binding RedactionDocumentRegionName}" Visibility="Visible" />
  70. </Grid>
  71. </Grid>
  72. </Grid>
  73. </UserControl>