MarkSettingDialog.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <UserControl
  2. x:Class="PDF_Office.Views.Dialog.Redaction.MarkSettingDialog"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:com="clr-namespace:PDF_Office.CustomControl.CompositeControl"
  6. xmlns:convert="clr-namespace:PDF_Office.DataConvert"
  7. xmlns:cus="clr-namespace:PDF_Office.CustomControl"
  8. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  9. xmlns:local="clr-namespace:PDF_Office.Views.Dialog.Redaction"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. Width="432"
  13. Height="462"
  14. d:DesignHeight="450"
  15. d:DesignWidth="800"
  16. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. Background="{StaticResource color.sys.layout.anti}"
  19. mc:Ignorable="d">
  20. <UserControl.Resources>
  21. <convert:InvertBoolConvert x:Key="InvertBoolConvert" />
  22. </UserControl.Resources>
  23. <cus:DialogContent Header="Settings">
  24. <StackPanel Margin="16,0">
  25. <Grid Height="24">
  26. <TextBlock
  27. VerticalAlignment="Center"
  28. FontSize="12"
  29. Foreground="{StaticResource color.sys.text.neutral.lv2}"
  30. Text="Marker Color" />
  31. </Grid>
  32. <StackPanel
  33. Height="32"
  34. Margin="0,8"
  35. Orientation="Horizontal">
  36. <TextBlock
  37. Name="TbOurline"
  38. VerticalAlignment="Center"
  39. Text="Redaction Mark Outline Color:" />
  40. <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
  41. </StackPanel>
  42. <StackPanel Height="32" Orientation="Horizontal">
  43. <TextBlock
  44. Width="{Binding ElementName=TbOurline, Path=Width}"
  45. VerticalAlignment="Center"
  46. Text="Redact Area Fill Color:" />
  47. <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
  48. </StackPanel>
  49. <CheckBox
  50. Name="chkText"
  51. Margin="0,16,0,8"
  52. Content="Use Overlay Text" />
  53. <Border
  54. Width="400"
  55. Height="198"
  56. Background="{StaticResource color.sys.layout.mg}"
  57. CornerRadius="4"
  58. IsEnabled="{Binding ElementName=chkText, Path=IsChecked, Converter={StaticResource InvertBoolConvert}}">
  59. <StackPanel Margin="8">
  60. <cus:TextBoxEx
  61. Height="70"
  62. VerticalContentAlignment="Top"
  63. Text="123" />
  64. <TextBlock
  65. Margin="0,10"
  66. FontSize="12"
  67. Foreground="{StaticResource color.sys.text.neutral.lv2}"
  68. Text="Font" />
  69. <StackPanel Orientation="Horizontal">
  70. <ComboBox Width="122.67" Height="32" />
  71. <ComboBox
  72. Width="122.67"
  73. Height="32"
  74. Margin="8,0" />
  75. <ComboBox Width="122.67" Height="32" />
  76. </StackPanel>
  77. <StackPanel Margin="0,8,0,0" Orientation="Horizontal">
  78. <RadioButton
  79. Width="32"
  80. Height="32"
  81. Style="{StaticResource RectangleRadionButtonWithCorner}" />
  82. <RadioButton
  83. Width="32"
  84. Height="32"
  85. Margin="8,0"
  86. Style="{StaticResource RectangleRadionButtonWithCorner}" />
  87. <RadioButton
  88. Width="32"
  89. Height="32"
  90. Style="{StaticResource RectangleRadionButtonWithCorner}" />
  91. <RadioButton
  92. Width="32"
  93. Height="32"
  94. Margin="8,0"
  95. Style="{StaticResource RectangleRadionButtonWithCorner}" />
  96. <com:ColorContent Margin="16,0,0,0" ShowColorList="Collapsed" />
  97. </StackPanel>
  98. </StackPanel>
  99. </Border>
  100. </StackPanel>
  101. <cus:DialogContent.BottmBar>
  102. <StackPanel
  103. Margin="16,0"
  104. HorizontalAlignment="Right"
  105. Orientation="Horizontal">
  106. <Button
  107. Width="80"
  108. Height="32"
  109. Content="Apply"
  110. Style="{StaticResource Btn.cta}" />
  111. <Button
  112. Width="80"
  113. Height="32"
  114. Margin="16,0,0,0"
  115. Content="Cancel"
  116. Style="{StaticResource btn.sec}" />
  117. </StackPanel>
  118. </cus:DialogContent.BottmBar>
  119. </cus:DialogContent>
  120. </UserControl>