PropertiesDialog.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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. PreviewMouseDown="TextBlock_PreviewMouseDown"
  135. Style="{StaticResource TextBlock}"
  136. Text="{Binding FilePath}"
  137. TextDecorations="Underline"
  138. TextTrimming="WordEllipsis"
  139. ToolTip="{Binding FilePath}" />
  140. </Grid>
  141. </Border>
  142. <Label Content="Create Message" Style="{StaticResource Label}" />
  143. <Border
  144. Margin="0,10"
  145. Background="{StaticResource color.sys.layout.mg}"
  146. CornerRadius="6">
  147. <Grid>
  148. <Grid.ColumnDefinitions>
  149. <ColumnDefinition Width="125" />
  150. <ColumnDefinition />
  151. </Grid.ColumnDefinitions>
  152. <Grid.RowDefinitions>
  153. <RowDefinition />
  154. <RowDefinition />
  155. <RowDefinition />
  156. <RowDefinition />
  157. <RowDefinition />
  158. <RowDefinition />
  159. </Grid.RowDefinitions>
  160. <Label Content="Versions" Style="{StaticResource Label2}" />
  161. <TextBlock
  162. Grid.Column="1"
  163. Style="{StaticResource TextBlock}"
  164. Text="{Binding Version}" />
  165. <Label
  166. Grid.Row="1"
  167. Content="Page"
  168. Style="{StaticResource Label2}" />
  169. <TextBlock
  170. Grid.Row="1"
  171. Grid.Column="1"
  172. Style="{StaticResource TextBlock}"
  173. Text="{Binding PageCount}" />
  174. <Label
  175. Grid.Row="2"
  176. Content="Creator"
  177. Style="{StaticResource Label2}" />
  178. <TextBlock
  179. Grid.Row="2"
  180. Grid.Column="1"
  181. Style="{StaticResource TextBlock}"
  182. Text="{Binding Creator}" />
  183. <Label
  184. Grid.Row="3"
  185. Content="Producer"
  186. Style="{StaticResource Label2}" />
  187. <TextBlock
  188. Grid.Row="3"
  189. Grid.Column="1"
  190. Style="{StaticResource TextBlock}"
  191. Text="{Binding Productor}" />
  192. <Label
  193. Grid.Row="4"
  194. Content="Creation Date"
  195. Style="{StaticResource Label2}" />
  196. <TextBlock
  197. Grid.Row="4"
  198. Grid.Column="1"
  199. Style="{StaticResource TextBlock}"
  200. Text="{Binding CreateDate}" />
  201. <Label
  202. Grid.Row="5"
  203. Margin="8"
  204. Content="Modify date"
  205. Style="{StaticResource Label2}" />
  206. <TextBlock
  207. Grid.Row="5"
  208. Grid.Column="1"
  209. Margin="8"
  210. Style="{StaticResource TextBlock}"
  211. Text="{Binding ModifyDate}" />
  212. </Grid>
  213. </Border>
  214. <Label Content="Permissions" Style="{StaticResource Label}" />
  215. <Border
  216. Margin="0,10"
  217. Background="{StaticResource color.sys.layout.mg}"
  218. CornerRadius="6">
  219. <Grid>
  220. <Grid.ColumnDefinitions>
  221. <ColumnDefinition Width="125" />
  222. <ColumnDefinition />
  223. </Grid.ColumnDefinitions>
  224. <Grid.RowDefinitions>
  225. <RowDefinition />
  226. <RowDefinition />
  227. <RowDefinition />
  228. <RowDefinition />
  229. </Grid.RowDefinitions>
  230. <Label Content="Encrypted" Style="{StaticResource Label2}" />
  231. <TextBlock
  232. Grid.Column="1"
  233. Style="{StaticResource TextBlock}"
  234. Text="{Binding IsEncrypted}" />
  235. <Label
  236. Grid.Row="1"
  237. Content="Unlocked"
  238. Style="{StaticResource Label2}" />
  239. <TextBlock
  240. Grid.Row="1"
  241. Grid.Column="1"
  242. Style="{StaticResource TextBlock}"
  243. Text="{Binding IsUnlocked}" />
  244. <Label
  245. Grid.Row="2"
  246. Content="Allow Copying"
  247. Style="{StaticResource Label2}" />
  248. <TextBlock
  249. Grid.Row="2"
  250. Grid.Column="1"
  251. Style="{StaticResource TextBlock}"
  252. Text="{Binding AllowCopy}" />
  253. <Label
  254. Grid.Row="3"
  255. Margin="8"
  256. Content="Allow printing"
  257. Style="{StaticResource Label2}" />
  258. <TextBlock
  259. Grid.Row="3"
  260. Grid.Column="1"
  261. Margin="8"
  262. Style="{StaticResource TextBlock}"
  263. Text="{Binding AllowPrint}" />
  264. </Grid>
  265. </Border>
  266. </StackPanel>
  267. </ScrollViewer>
  268. </Grid>
  269. </UserControl>