PropertiesDialog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <Window
  2. x:Class="PDF_Office.Views.Dialog.PropertiesDialog"
  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:dataconvert="clr-namespace:PDF_Office.DataConvert"
  8. xmlns:dialog="clr-namespace:PDF_Office.ViewModels.Dialog"
  9. xmlns:local="clr-namespace:PDF_Office.Views.Dialog"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. Width="457"
  13. Height="674"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. Style="{StaticResource WindowStyle}"
  16. ResizeMode="CanMinimize"
  17. WindowStartupLocation="CenterScreen"
  18. mc:Ignorable="d">
  19. <Window.Resources>
  20. <ResourceDictionary>
  21. <dataconvert:UnVisivleConvert x:Key="UnvisibleConvert" />
  22. <Style x:Key="Label" TargetType="Label">
  23. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
  24. <Setter Property="VerticalAlignment" Value="Center" />
  25. <Setter Property="FontSize" Value="12" />
  26. <Setter Property="FontWeight" Value="Bold" />
  27. </Style>
  28. <Style x:Key="Label2" TargetType="Label">
  29. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv2}" />
  30. <Setter Property="VerticalAlignment" Value="Center" />
  31. <Setter Property="FontSize" Value="14" />
  32. <Setter Property="Margin" Value="8,8,8,0" />
  33. </Style>
  34. <Style x:Key="TextBlock" TargetType="TextBlock">
  35. <Setter Property="Foreground" Value="{StaticResource color.sys.text.neutral.lv1}" />
  36. <Setter Property="VerticalAlignment" Value="Center" />
  37. <Setter Property="FontSize" Value="14" />
  38. <Setter Property="Margin" Value="8,8,8,0" />
  39. </Style>
  40. </ResourceDictionary>
  41. </Window.Resources>
  42. <Grid>
  43. <Grid.RowDefinitions>
  44. <RowDefinition Height="40" />
  45. <RowDefinition />
  46. </Grid.RowDefinitions>
  47. <TextBlock
  48. Width="550"
  49. Margin="16,6"
  50. HorizontalAlignment="Left"
  51. VerticalAlignment="Center"
  52. FontFamily="Segoe UI"
  53. FontSize="16"
  54. FontWeight="Bold"
  55. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  56. Text="Preferences" />
  57. <StackPanel
  58. Name="StkPnlRight"
  59. HorizontalAlignment="Right"
  60. Orientation="Horizontal"
  61. WindowChrome.IsHitTestVisibleInChrome="True">
  62. <Button
  63. Name="BtnClose"
  64. Width="40"
  65. Height="40"
  66. Background="Transparent"
  67. BorderThickness="0"
  68. Click="BtnClose_Click"
  69. Style="{StaticResource CloseBtn}">
  70. <Polygon Fill="{StaticResource color.btn.sec.text.def}" Points="11.2919922 12 12 11.2919922 6.70800781 6 12 0.708007813 11.2919922 0 6 5.29199219 0.708007812 9.76996262e-15 -2.27456942e-13 0.708007813 5.29199219 6 0 11.2919922 0.708007812 12 6 6.70800781" />
  71. </Button>
  72. </StackPanel>
  73. <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
  74. <StackPanel Margin="16,6">
  75. <Label Content="Abstract" Style="{StaticResource Label}" />
  76. <Border
  77. Margin="0,10"
  78. Background="{StaticResource color.sys.layout.mg}"
  79. CornerRadius="6">
  80. <Grid>
  81. <Grid.ColumnDefinitions>
  82. <ColumnDefinition Width="125" />
  83. <ColumnDefinition />
  84. </Grid.ColumnDefinitions>
  85. <Grid.RowDefinitions>
  86. <RowDefinition />
  87. <RowDefinition />
  88. <RowDefinition />
  89. <RowDefinition />
  90. <RowDefinition />
  91. </Grid.RowDefinitions>
  92. <Label Content="Name" Style="{StaticResource Label2}" />
  93. <TextBlock
  94. Grid.Column="1"
  95. Style="{StaticResource TextBlock}"
  96. Text="PDF Office Quick Guide.pdf" />
  97. <Label
  98. Grid.Row="1"
  99. Content="Size"
  100. Style="{StaticResource Label2}" />
  101. <TextBlock
  102. Grid.Row="1"
  103. Grid.Column="1"
  104. Style="{StaticResource TextBlock}"
  105. Text="168.9kb" />
  106. <Label
  107. Grid.Row="2"
  108. Content="Title"
  109. Style="{StaticResource Label2}" />
  110. <TextBlock
  111. Grid.Row="2"
  112. Grid.Column="1"
  113. Style="{StaticResource TextBlock}"
  114. Text="" />
  115. <Label
  116. Grid.Row="3"
  117. Content="Author"
  118. Style="{StaticResource Label2}" />
  119. <TextBlock
  120. Grid.Row="3"
  121. Grid.Column="1"
  122. Style="{StaticResource TextBlock}"
  123. Text="" />
  124. <Label
  125. Grid.Row="4"
  126. Margin="8"
  127. Content="Location"
  128. Style="{StaticResource Label2}" />
  129. <TextBlock
  130. Grid.Row="4"
  131. Grid.Column="1"
  132. Margin="8"
  133. Foreground="{StaticResource color.btn.link.text.norm}"
  134. Style="{StaticResource TextBlock}"
  135. Text="C/User/Desktop/pdfoffice/PDF Office Quick Guide.pdf" />
  136. </Grid>
  137. </Border>
  138. <Label Content="Create Message" Style="{StaticResource Label}" />
  139. <Border
  140. Margin="0,10"
  141. Background="{StaticResource color.sys.layout.mg}"
  142. CornerRadius="6">
  143. <Grid>
  144. <Grid.ColumnDefinitions>
  145. <ColumnDefinition Width="125" />
  146. <ColumnDefinition />
  147. </Grid.ColumnDefinitions>
  148. <Grid.RowDefinitions>
  149. <RowDefinition />
  150. <RowDefinition />
  151. <RowDefinition />
  152. <RowDefinition />
  153. <RowDefinition />
  154. <RowDefinition />
  155. </Grid.RowDefinitions>
  156. <Label Content="Versions" Style="{StaticResource Label2}" />
  157. <TextBlock
  158. Grid.Column="1"
  159. Style="{StaticResource TextBlock}"
  160. Text="1.0" />
  161. <Label
  162. Grid.Row="1"
  163. Content="Page"
  164. Style="{StaticResource Label2}" />
  165. <TextBlock
  166. Grid.Row="1"
  167. Grid.Column="1"
  168. Style="{StaticResource TextBlock}"
  169. Text="1" />
  170. <Label
  171. Grid.Row="2"
  172. Content="Creator"
  173. Style="{StaticResource Label2}" />
  174. <TextBlock
  175. Grid.Row="2"
  176. Grid.Column="1"
  177. Style="{StaticResource TextBlock}"
  178. Text="PDF Office" />
  179. <Label
  180. Grid.Row="3"
  181. Content="Producer"
  182. Style="{StaticResource Label2}" />
  183. <TextBlock
  184. Grid.Row="3"
  185. Grid.Column="1"
  186. Style="{StaticResource TextBlock}"
  187. Text="Windows Version 11" />
  188. <Label
  189. Grid.Row="4"
  190. Content="Creation Date"
  191. Style="{StaticResource Label2}" />
  192. <TextBlock
  193. Grid.Row="4"
  194. Grid.Column="1"
  195. Style="{StaticResource TextBlock}"
  196. Text="" />
  197. <Label
  198. Grid.Row="5"
  199. Margin="8"
  200. Content="Modify date"
  201. Style="{StaticResource Label2}" />
  202. <TextBlock
  203. Grid.Row="5"
  204. Grid.Column="1"
  205. Margin="8"
  206. Style="{StaticResource TextBlock}"
  207. Text="" />
  208. </Grid>
  209. </Border>
  210. <Label Content="Permissions" Style="{StaticResource Label}" />
  211. <Border
  212. Margin="0,10"
  213. Background="{StaticResource color.sys.layout.mg}"
  214. CornerRadius="6">
  215. <Grid>
  216. <Grid.ColumnDefinitions>
  217. <ColumnDefinition Width="125" />
  218. <ColumnDefinition />
  219. </Grid.ColumnDefinitions>
  220. <Grid.RowDefinitions>
  221. <RowDefinition />
  222. <RowDefinition />
  223. <RowDefinition />
  224. <RowDefinition />
  225. </Grid.RowDefinitions>
  226. <Label Content="Encrypted" Style="{StaticResource Label2}" />
  227. <TextBlock
  228. Grid.Column="1"
  229. Style="{StaticResource TextBlock}"
  230. Text="No" />
  231. <Label
  232. Grid.Row="1"
  233. Content="Unlocked"
  234. Style="{StaticResource Label2}" />
  235. <TextBlock
  236. Grid.Row="1"
  237. Grid.Column="1"
  238. Style="{StaticResource TextBlock}"
  239. Text="Yes" />
  240. <Label
  241. Grid.Row="2"
  242. Content="Allow Copying"
  243. Style="{StaticResource Label2}" />
  244. <TextBlock
  245. Grid.Row="2"
  246. Grid.Column="1"
  247. Style="{StaticResource TextBlock}"
  248. Text="Yes" />
  249. <Label
  250. Grid.Row="3"
  251. Margin="8"
  252. Content="Allow printing"
  253. Style="{StaticResource Label2}" />
  254. <TextBlock
  255. Grid.Row="3"
  256. Grid.Column="1"
  257. Margin="8"
  258. Style="{StaticResource TextBlock}"
  259. Text="Yes" />
  260. </Grid>
  261. </Border>
  262. </StackPanel>
  263. </ScrollViewer>
  264. </Grid>
  265. </Window>