PropertiesDialog.xaml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274
  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. <Setter Property="TextTrimming" Value="CharacterEllipsis" />
  40. <Setter Property="ToolTip" Value="{Binding RelativeSource={RelativeSource Mode=Self}, Path=Text}" />
  41. </Style>
  42. </ResourceDictionary>
  43. </UserControl.Resources>
  44. <Grid>
  45. <Grid.RowDefinitions>
  46. <RowDefinition Height="40" />
  47. <RowDefinition />
  48. </Grid.RowDefinitions>
  49. <TextBlock
  50. Width="550"
  51. Margin="16,6"
  52. HorizontalAlignment="Left"
  53. VerticalAlignment="Center"
  54. FontFamily="Segoe UI"
  55. FontSize="16"
  56. FontWeight="Bold"
  57. Foreground="{StaticResource color.sys.text.neutral.lv1}"
  58. Text="Properties" />
  59. <StackPanel
  60. Name="StkPnlRight"
  61. HorizontalAlignment="Right"
  62. Orientation="Horizontal"
  63. WindowChrome.IsHitTestVisibleInChrome="True">
  64. <Button
  65. Name="BtnClose"
  66. Width="40"
  67. Height="40"
  68. Background="Transparent"
  69. BorderThickness="0"
  70. Click="BtnClose_Click"
  71. Style="{StaticResource CloseBtn}">
  72. <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" />
  73. </Button>
  74. </StackPanel>
  75. <ScrollViewer Grid.Row="1" VerticalScrollBarVisibility="Auto">
  76. <StackPanel Margin="16,6">
  77. <Label Content="Abstract" Style="{StaticResource Label}" />
  78. <Border
  79. Margin="0,10"
  80. Background="{StaticResource color.sys.layout.mg}"
  81. CornerRadius="6">
  82. <Grid>
  83. <Grid.ColumnDefinitions>
  84. <ColumnDefinition Width="125" />
  85. <ColumnDefinition />
  86. </Grid.ColumnDefinitions>
  87. <Grid.RowDefinitions>
  88. <RowDefinition />
  89. <RowDefinition />
  90. <RowDefinition />
  91. <RowDefinition />
  92. <RowDefinition />
  93. </Grid.RowDefinitions>
  94. <Label Content="Name" Style="{StaticResource Label2}" />
  95. <TextBlock
  96. Grid.Column="1"
  97. Style="{StaticResource TextBlock}"
  98. Text="{Binding FileName}"
  99. TextTrimming="CharacterEllipsis"
  100. ToolTip="{Binding FileName}" />
  101. <Label
  102. Grid.Row="1"
  103. Content="Size"
  104. Style="{StaticResource Label2}" />
  105. <TextBlock
  106. Grid.Row="1"
  107. Grid.Column="1"
  108. Style="{StaticResource TextBlock}"
  109. Text="{Binding FileSize}" />
  110. <Label
  111. Grid.Row="2"
  112. Content="Title"
  113. Style="{StaticResource Label2}" />
  114. <TextBlock
  115. Grid.Row="2"
  116. Grid.Column="1"
  117. Style="{StaticResource TextBlock}"
  118. Text="{Binding FileTitle}" />
  119. <Label
  120. Grid.Row="3"
  121. Content="Author"
  122. Style="{StaticResource Label2}" />
  123. <TextBlock
  124. Grid.Row="3"
  125. Grid.Column="1"
  126. Style="{StaticResource TextBlock}"
  127. Text="{Binding Author}" />
  128. <Label
  129. Grid.Row="4"
  130. Margin="8"
  131. Content="Location"
  132. Style="{StaticResource Label2}" />
  133. <TextBlock
  134. Grid.Row="4"
  135. Grid.Column="1"
  136. Margin="8"
  137. Foreground="{StaticResource color.btn.link.text.norm}"
  138. PreviewMouseDown="TextBlock_PreviewMouseDown"
  139. Style="{StaticResource TextBlock}"
  140. Text="{Binding FilePath}"
  141. TextDecorations="Underline"
  142. TextTrimming="WordEllipsis"
  143. ToolTip="{Binding FilePath}" />
  144. </Grid>
  145. </Border>
  146. <Label Content="Create Message" Style="{StaticResource Label}" />
  147. <Border
  148. Margin="0,10"
  149. Background="{StaticResource color.sys.layout.mg}"
  150. CornerRadius="6">
  151. <Grid>
  152. <Grid.ColumnDefinitions>
  153. <ColumnDefinition Width="125" />
  154. <ColumnDefinition />
  155. </Grid.ColumnDefinitions>
  156. <Grid.RowDefinitions>
  157. <RowDefinition />
  158. <RowDefinition />
  159. <RowDefinition />
  160. <RowDefinition />
  161. <RowDefinition />
  162. <RowDefinition />
  163. </Grid.RowDefinitions>
  164. <Label Content="Versions" Style="{StaticResource Label2}" />
  165. <TextBlock
  166. Grid.Column="1"
  167. Style="{StaticResource TextBlock}"
  168. Text="{Binding Version}" />
  169. <Label
  170. Grid.Row="1"
  171. Content="Page"
  172. Style="{StaticResource Label2}" />
  173. <TextBlock
  174. Grid.Row="1"
  175. Grid.Column="1"
  176. Style="{StaticResource TextBlock}"
  177. Text="{Binding PageCount}" />
  178. <Label
  179. Grid.Row="2"
  180. Content="Creator"
  181. Style="{StaticResource Label2}" />
  182. <TextBlock
  183. Grid.Row="2"
  184. Grid.Column="1"
  185. Style="{StaticResource TextBlock}"
  186. Text="{Binding Creator}" />
  187. <Label
  188. Grid.Row="3"
  189. Content="Producer"
  190. Style="{StaticResource Label2}" />
  191. <TextBlock
  192. Grid.Row="3"
  193. Grid.Column="1"
  194. Style="{StaticResource TextBlock}"
  195. Text="{Binding Productor}" />
  196. <Label
  197. Grid.Row="4"
  198. Content="Creation Date"
  199. Style="{StaticResource Label2}" />
  200. <TextBlock
  201. Grid.Row="4"
  202. Grid.Column="1"
  203. Style="{StaticResource TextBlock}"
  204. Text="{Binding CreateDate}" />
  205. <Label
  206. Grid.Row="5"
  207. Margin="8"
  208. Content="Modify date"
  209. Style="{StaticResource Label2}" />
  210. <TextBlock
  211. Grid.Row="5"
  212. Grid.Column="1"
  213. Margin="8"
  214. Style="{StaticResource TextBlock}"
  215. Text="{Binding ModifyDate}" />
  216. </Grid>
  217. </Border>
  218. <Label Content="Permissions" Style="{StaticResource Label}" />
  219. <Border
  220. Margin="0,10"
  221. Background="{StaticResource color.sys.layout.mg}"
  222. CornerRadius="6">
  223. <Grid>
  224. <Grid.ColumnDefinitions>
  225. <ColumnDefinition Width="125" />
  226. <ColumnDefinition />
  227. </Grid.ColumnDefinitions>
  228. <Grid.RowDefinitions>
  229. <RowDefinition />
  230. <RowDefinition />
  231. <RowDefinition />
  232. <RowDefinition />
  233. </Grid.RowDefinitions>
  234. <Label Content="Encrypted" Style="{StaticResource Label2}" />
  235. <TextBlock
  236. Grid.Column="1"
  237. Style="{StaticResource TextBlock}"
  238. Text="{Binding IsEncrypted}" />
  239. <Label
  240. Grid.Row="1"
  241. Content="Unlocked"
  242. Style="{StaticResource Label2}" />
  243. <TextBlock
  244. Grid.Row="1"
  245. Grid.Column="1"
  246. Style="{StaticResource TextBlock}"
  247. Text="{Binding IsUnlocked}" />
  248. <Label
  249. Grid.Row="2"
  250. Content="Allow Copying"
  251. Style="{StaticResource Label2}" />
  252. <TextBlock
  253. Grid.Row="2"
  254. Grid.Column="1"
  255. Style="{StaticResource TextBlock}"
  256. Text="{Binding AllowCopy}" />
  257. <Label
  258. Grid.Row="3"
  259. Margin="8"
  260. Content="Allow printing"
  261. Style="{StaticResource Label2}" />
  262. <TextBlock
  263. Grid.Row="3"
  264. Grid.Column="1"
  265. Margin="8"
  266. Style="{StaticResource TextBlock}"
  267. Text="{Binding AllowPrint}" />
  268. </Grid>
  269. </Border>
  270. </StackPanel>
  271. </ScrollViewer>
  272. </Grid>
  273. </UserControl>