PropertiesDialog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <UserControl
  2. x:Class="PDF_Master.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_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:dataconvert="clr-namespace:PDF_Master.DataConvert"
  8. xmlns:dialog="clr-namespace:PDF_Master.ViewModels.Dialog"
  9. xmlns:local="clr-namespace:PDF_Master.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. d:DataContext="{d:DesignInstance Type=dialog:PropertiesDialogViewModel}"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. Background="{StaticResource color.sys.layout.anti}"
  18. mc:Ignorable="d">
  19. <UserControl.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. </UserControl.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="{Binding FileName}" />
  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="{Binding FileSize}" />
  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="{Binding FileTitle}" />
  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="{Binding Author}" />
  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="{Binding FilePath}"
  136. PreviewMouseDown="TextBlock_PreviewMouseDown"
  137. TextDecorations="Underline" />
  138. </Grid>
  139. </Border>
  140. <Label Content="Create Message" Style="{StaticResource Label}" />
  141. <Border
  142. Margin="0,10"
  143. Background="{StaticResource color.sys.layout.mg}"
  144. CornerRadius="6">
  145. <Grid>
  146. <Grid.ColumnDefinitions>
  147. <ColumnDefinition Width="125" />
  148. <ColumnDefinition />
  149. </Grid.ColumnDefinitions>
  150. <Grid.RowDefinitions>
  151. <RowDefinition />
  152. <RowDefinition />
  153. <RowDefinition />
  154. <RowDefinition />
  155. <RowDefinition />
  156. <RowDefinition />
  157. </Grid.RowDefinitions>
  158. <Label Content="Versions" Style="{StaticResource Label2}" />
  159. <TextBlock
  160. Grid.Column="1"
  161. Style="{StaticResource TextBlock}"
  162. Text="{Binding Version}" />
  163. <Label
  164. Grid.Row="1"
  165. Content="Page"
  166. Style="{StaticResource Label2}" />
  167. <TextBlock
  168. Grid.Row="1"
  169. Grid.Column="1"
  170. Style="{StaticResource TextBlock}"
  171. Text="{Binding PageCount}" />
  172. <Label
  173. Grid.Row="2"
  174. Content="Creator"
  175. Style="{StaticResource Label2}" />
  176. <TextBlock
  177. Grid.Row="2"
  178. Grid.Column="1"
  179. Style="{StaticResource TextBlock}"
  180. Text="{Binding Creator}" />
  181. <Label
  182. Grid.Row="3"
  183. Content="Producer"
  184. Style="{StaticResource Label2}" />
  185. <TextBlock
  186. Grid.Row="3"
  187. Grid.Column="1"
  188. Style="{StaticResource TextBlock}"
  189. Text="{Binding Productor}" />
  190. <Label
  191. Grid.Row="4"
  192. Content="Creation Date"
  193. Style="{StaticResource Label2}" />
  194. <TextBlock
  195. Grid.Row="4"
  196. Grid.Column="1"
  197. Style="{StaticResource TextBlock}"
  198. Text="{Binding CreateDate}" />
  199. <Label
  200. Grid.Row="5"
  201. Margin="8"
  202. Content="Modify date"
  203. Style="{StaticResource Label2}" />
  204. <TextBlock
  205. Grid.Row="5"
  206. Grid.Column="1"
  207. Margin="8"
  208. Style="{StaticResource TextBlock}"
  209. Text="{Binding ModifyDate}" />
  210. </Grid>
  211. </Border>
  212. <Label Content="Permissions" Style="{StaticResource Label}" />
  213. <Border
  214. Margin="0,10"
  215. Background="{StaticResource color.sys.layout.mg}"
  216. CornerRadius="6">
  217. <Grid>
  218. <Grid.ColumnDefinitions>
  219. <ColumnDefinition Width="125" />
  220. <ColumnDefinition />
  221. </Grid.ColumnDefinitions>
  222. <Grid.RowDefinitions>
  223. <RowDefinition />
  224. <RowDefinition />
  225. <RowDefinition />
  226. <RowDefinition />
  227. </Grid.RowDefinitions>
  228. <Label Content="Encrypted" Style="{StaticResource Label2}" />
  229. <TextBlock
  230. Grid.Column="1"
  231. Style="{StaticResource TextBlock}"
  232. Text="{Binding IsEncrypted}" />
  233. <Label
  234. Grid.Row="1"
  235. Content="Unlocked"
  236. Style="{StaticResource Label2}" />
  237. <TextBlock
  238. Grid.Row="1"
  239. Grid.Column="1"
  240. Style="{StaticResource TextBlock}"
  241. Text="{Binding IsUnlocked}" />
  242. <Label
  243. Grid.Row="2"
  244. Content="Allow Copying"
  245. Style="{StaticResource Label2}" />
  246. <TextBlock
  247. Grid.Row="2"
  248. Grid.Column="1"
  249. Style="{StaticResource TextBlock}"
  250. Text="{Binding AllowCopy}" />
  251. <Label
  252. Grid.Row="3"
  253. Margin="8"
  254. Content="Allow printing"
  255. Style="{StaticResource Label2}" />
  256. <TextBlock
  257. Grid.Row="3"
  258. Grid.Column="1"
  259. Margin="8"
  260. Style="{StaticResource TextBlock}"
  261. Text="{Binding AllowPrint}" />
  262. </Grid>
  263. </Border>
  264. </StackPanel>
  265. </ScrollViewer>
  266. </Grid>
  267. </UserControl>