ViewContent.xaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <UserControl
  2. x:Class="PDF_Office.Views.ViewContent"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:Viewer="clr-namespace:ComPDFKitViewer.PdfViewer;assembly=ComPDFKit.Viewer"
  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:i="http://schemas.microsoft.com/xaml/behaviors"
  10. xmlns:local="clr-namespace:PDF_Office.Views"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. xmlns:viewmodels="clr-namespace:PDF_Office.ViewModels"
  14. d:DataContext="{d:DesignInstance Type=viewmodels:ViewContentViewModel}"
  15. d:DesignHeight="450"
  16. d:DesignWidth="800"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. KeyDown="UserControl_KeyDown"
  19. mc:Ignorable="d">
  20. <i:Interaction.Triggers>
  21. <i:EventTrigger EventName="Loaded">
  22. <prism:InvokeCommandAction Command="{Binding Load}" />
  23. </i:EventTrigger>
  24. </i:Interaction.Triggers>
  25. <UserControl.Resources>
  26. <ResourceDictionary>
  27. <ResourceDictionary.MergedDictionaries>
  28. <ResourceDictionary Source="pack://application:,,,/Styles/ButtonStyle.xaml" />
  29. </ResourceDictionary.MergedDictionaries>
  30. <Style x:Key="MenuButtonStyle" TargetType="{x:Type Button}">
  31. <Setter Property="Width" Value="20" />
  32. <Setter Property="Height" Value="20" />
  33. </Style>
  34. <convert:BoolToVisible x:Key="BoolToVisibleConvert" />
  35. </ResourceDictionary>
  36. </UserControl.Resources>
  37. <Grid Background="{StaticResource color.sys.layout.mg}">
  38. <Grid.RowDefinitions>
  39. <RowDefinition Name="HeadRow" Height="40" />
  40. <RowDefinition Name="ToolRow" Height="40" />
  41. <RowDefinition Height="*" />
  42. <RowDefinition Height="32" />
  43. </Grid.RowDefinitions>
  44. <Grid Visibility="{Binding GridVisibility}">
  45. <!-- 左边菜单按钮 -->
  46. <StackPanel
  47. Margin="16,6,0,6"
  48. HorizontalAlignment="Left"
  49. Orientation="Horizontal"
  50. Visibility="{Binding IsReadMode}">
  51. <Button
  52. Name="BtnFile"
  53. Click="BtnFile_Click"
  54. Content="Files"
  55. Initialized="BtnFile_Initialized"
  56. Style="{StaticResource subToolBar}"
  57. ToolTip="File">
  58. <Button.ContextMenu>
  59. <ContextMenu Name="FileMenu">
  60. <MenuItem
  61. Command="{Binding mainViewModel.homeContentViewModel.OpenFileCommand}"
  62. Header="Open Files"
  63. InputGestureText="Ctrl+O" />
  64. <MenuItem
  65. Name="MenuRecent"
  66. Header="Open Recent"
  67. Loaded="MenuRecent_Loaded">
  68. <Separator Name="Menu_Separator" Style="{StaticResource HorizontalSeparatorStyle}" />
  69. <MenuItem Name="MenuDeleteAll" Header="Delete All" Click="MenuDeleteAll_Click" />
  70. </MenuItem>
  71. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  72. <MenuItem Header="Create Files">
  73. <MenuItem Command="{Binding mainViewModel.homeContentViewModel.CreateBlackPDFCommand}" Header="Create Blank" />
  74. <MenuItem Command="{Binding mainViewModel.homeContentViewModel.CreateFromHtmlCommnd}" Header="Create Form Html" />
  75. </MenuItem>
  76. <MenuItem
  77. Command="{Binding mainViewModel.mainWindowViewModel.AddTab}"
  78. Header="New Tab"
  79. InputGestureText="Ctrl+T" />
  80. <MenuItem Command="{Binding MergeFileCommand}" Header="Merge PDF Files" />
  81. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  82. <MenuItem
  83. Command="{Binding SaveFile}"
  84. Header="Save"
  85. InputGestureText="Ctrl+S" />
  86. <MenuItem
  87. Command="{Binding SaveAsFile}"
  88. Header="Save As"
  89. InputGestureText="Ctrl+Shift+S" />
  90. <MenuItem
  91. Command="{Binding SaveAsFlattenCommand}"
  92. Header="Save as Flattened PDF"
  93. Visibility="Collapsed" />
  94. <MenuItem Command="{Binding CompressCommand}" Header="Compress" />
  95. <MenuItem Header="Convert To">
  96. <MenuItem
  97. Command="{Binding ConvertCommand}"
  98. CommandParameter="Word"
  99. Header="Word" />
  100. <MenuItem
  101. Command="{Binding ConvertCommand}"
  102. CommandParameter="Excel"
  103. Header="Excel" />
  104. <MenuItem
  105. Command="{Binding ConvertCommand}"
  106. CommandParameter="PPT"
  107. Header="PowerPoint" />
  108. <MenuItem
  109. Command="{Binding ConvertCommand}"
  110. CommandParameter="RTF"
  111. Header="RTF" />
  112. <MenuItem
  113. Command="{Binding ConvertCommand}"
  114. CommandParameter="HTML"
  115. Header="HTML" />
  116. <MenuItem
  117. Command="{Binding ConvertCommand}"
  118. CommandParameter="Text"
  119. Header="Text" />
  120. <MenuItem
  121. Command="{Binding ConvertCommand}"
  122. CommandParameter="CSV"
  123. Header="CSV" />
  124. <MenuItem
  125. Command="{Binding ConvertCommand}"
  126. CommandParameter="Image"
  127. Header="图片" />
  128. </MenuItem>
  129. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  130. <MenuItem
  131. Command="{Binding CloseWindowCommand}"
  132. Header="Close Window"
  133. InputGestureText="Ctrl+Shift+W" />
  134. <MenuItem
  135. Command="{Binding mainViewModel.CloseTab}"
  136. Header="Close Tab"
  137. InputGestureText="Ctrl+W" />
  138. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  139. <MenuItem Command="{Binding EncryptCommand}" Header="Set Passwords" />
  140. <MenuItem Command="{Binding DecryptCommand}" Header="Remove Security" />
  141. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  142. <MenuItem Command="{Binding ShowInFolderCommand}" Header="Show in Folder" />
  143. <MenuItem Command="{Binding PropertyCommand}" Header="Properties" />
  144. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  145. <MenuItem Command="{Binding ShareCommand}" Header="Share" />
  146. <MenuItem Command="{Binding PrintCommand}" Header="Print" />
  147. <Separator Margin="8,0" Style="{StaticResource HorizontalSeparatorStyle}" />
  148. <MenuItem
  149. Command="{Binding SettingsCommand}"
  150. Header="Settings"
  151. InputGestureText="Ctrl+P" />
  152. <MenuItem Header="Help" />
  153. </ContextMenu>
  154. </Button.ContextMenu>
  155. </Button>
  156. <Separator
  157. Width="1"
  158. Height="12"
  159. Margin="8,0"
  160. Background="{StaticResource color.sys.layout.divider}"
  161. Style="{StaticResource {x:Static ToolBar.SeparatorStyleKey}}" />
  162. <Button
  163. Command="{Binding SaveFile}"
  164. IsEnabled="{Binding CanSave}"
  165. Style="{StaticResource subToolBar}"
  166. ToolTip="Save">
  167. <Path
  168. Width="20"
  169. Height="20"
  170. Data="M16 16V6.82843L13.1716 4H12V8C12 9.10457 11.1046 10 10 10H7C5.89543 10 5 9.10457 5 8V4H4V16H16ZM7 4H10V8H7V4ZM13.1716 2H12H10H7H5H4C2.89543 2 2 2.89543 2 4V16C2 17.1046 2.89543 18 4 18H16C17.1046 18 18 17.1046 18 16V6.82843C18 6.29799 17.7893 5.78929 17.4142 5.41421L14.5858 2.58579C14.2107 2.21071 13.702 2 13.1716 2ZM9.25 5H7.75V7H9.25V5Z"
  171. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  172. </Button>
  173. <Button
  174. Margin="2,0"
  175. Command="{Binding UndoCommand}"
  176. IsEnabled="{Binding CanUndo}"
  177. Style="{StaticResource subToolBar}"
  178. ToolTip="Undo">
  179. <Path
  180. Width="20"
  181. Height="20"
  182. Data="M5.75766 8.00008L6.70741 8.94982L5.2932 10.364L2.46477 7.53561C2.07424 7.14508 2.07424 6.51192 2.46477 6.1214L5.2932 3.29297L6.70741 4.70718L5.41451 6.00008H12.5001C15.5377 6.00008 18.0001 8.46251 18.0001 11.5001C18.0001 14.5376 15.5377 17.0001 12.5001 17.0001H3.00012V15.0001H12.5001C14.4331 15.0001 16.0001 13.4331 16.0001 11.5001C16.0001 9.56708 14.4331 8.00008 12.5001 8.00008H5.75766Z"
  183. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  184. </Button>
  185. <Button
  186. Command="{Binding RedoCommand}"
  187. IsEnabled="{Binding CanRedo}"
  188. Style="{StaticResource subToolBar}"
  189. ToolTip="Redo">
  190. <Path
  191. Width="20"
  192. Height="20"
  193. Data="M14.2424 8.00006L13.2926 8.94982L14.7068 10.364L17.5352 7.53561C17.9258 7.14508 17.9258 6.51192 17.5352 6.1214L14.7068 3.29297L13.2926 4.70718L14.5855 6.00006H7.49969C4.46213 6.00006 1.9997 8.46249 1.9997 11.5001C1.9997 14.5376 4.46213 17.0001 7.4997 17.0001H16.9997V15.0001H7.4997C5.5667 15.0001 3.9997 13.4331 3.9997 11.5001C3.9997 9.56706 5.5667 8.00006 7.49969 8.00006H14.2424Z"
  194. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  195. </Button>
  196. </StackPanel>
  197. <!-- 右边菜单按钮 -->
  198. <StackPanel
  199. Margin="0,6,16,6"
  200. HorizontalAlignment="Right"
  201. Orientation="Horizontal"
  202. Visibility="{Binding IsReadMode}">
  203. <Button
  204. Command="{Binding PrintCommand}"
  205. Style="{StaticResource subToolBar}"
  206. ToolTip="Print">
  207. <Path
  208. Width="20"
  209. Height="20"
  210. Data="M17 6.99999H14.8203C14.7973 7.00126 14.7741 7.0019 14.7508 7.0019L10.0008 7.00254L5.25081 7.00319C5.22047 7.00319 5.19038 7.00211 5.16058 6.99999H3C2.44772 6.99999 2 7.44771 2 7.99999V13.75C2 13.8881 2.11193 14 2.25 14H4V13.25C4 12.5596 4.55964 12 5.25 12H14.75C15.4404 12 16 12.5596 16 13.25V14H17.75C17.8881 14 18 13.8881 18 13.75V7.99999C18 7.44771 17.5523 6.99999 17 6.99999ZM16 16H17.75C18.9926 16 20 14.9926 20 13.75V7.99999C20 6.34314 18.6569 4.99999 17 4.99999H16.0005L16.0002 2.24837C16.0001 1.55801 15.4404 0.998442 14.75 0.998535L5.25 0.999822C4.55964 0.999916 4.00008 1.55964 4.00017 2.24999L4.00054 4.99999H3C1.34315 4.99999 0 6.34314 0 7.99999V13.75C0 14.9926 1.00736 16 2.25 16H4V17.75C4 18.4403 4.55964 19 5.25 19H14.75C15.4404 19 16 18.4403 16 17.75V16ZM6.00027 2.99972L6.00054 4.99999H14.0005L14.0003 2.99864L6.00027 2.99972ZM14 8.49999V10.5H16V8.49999H14ZM6 17V14H14V17H6Z"
  211. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  212. </Button>
  213. <Button
  214. Margin="2,0"
  215. Command="{Binding ShareCommand}"
  216. Style="{StaticResource subToolBar}"
  217. ToolTip="Share">
  218. <Path
  219. Width="20"
  220. Height="20"
  221. Data="M15.0858 3.5H11.25V1.5H16.6395C17.667 1.5 18.5 2.33298 18.5 3.36051V8.75H16.5V4.91421L11.136 10.2782L9.72183 8.86396L15.0858 3.5ZM4.25 4C4.11193 4 4 4.11193 4 4.25V15.75C4 15.8881 4.11193 16 4.25 16H15.75C15.8881 16 16 15.8881 16 15.75V10.875H18V15.75C18 16.9926 16.9926 18 15.75 18H4.25C3.00736 18 2 16.9926 2 15.75V4.25C2 3.00736 3.00736 2 4.25 2H9.125V4H4.25Z"
  222. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  223. </Button>
  224. <ToggleButton
  225. Name="TbtnProperty"
  226. Width="28"
  227. Height="28"
  228. BorderThickness="0"
  229. IsChecked="{Binding IsPropertyOpen}"
  230. Style="{StaticResource SubToolbarTgb}"
  231. ToolTip="Property">
  232. <Path
  233. Width="20"
  234. Height="20"
  235. Data="M2 4V7H18V4H2ZM2 16V9H13V16H2ZM15 16H18V9H15V16ZM1.72101 2C0.770524 2 0 2.77052 0 3.72101V16.279C0 17.2295 0.770524 18 1.72101 18H18.279C19.2295 18 20 17.2295 20 16.279V3.72101C20 2.77052 19.2295 2 18.279 2H1.72101Z"
  236. Fill="{StaticResource color.icon.base.neutral.norm.lv1}" />
  237. </ToggleButton>
  238. </StackPanel>
  239. <TabControl
  240. x:Name="ToolTabControl"
  241. Grid.Row="0"
  242. Grid.RowSpan="2"
  243. HorizontalAlignment="Center"
  244. VerticalAlignment="Top"
  245. BorderThickness="0"
  246. SelectedIndex="{Binding TabSelectedIndex, Mode=TwoWay}"
  247. Style="{StaticResource TabControlWithUnderLineStyle}"
  248. Visibility="{Binding IsReadMode}">
  249. <cus:IconAndTextTabItem
  250. x:Name="TabItemAnnotation"
  251. Header="注释"
  252. Style="{StaticResource ToolbarTabs}">
  253. <Grid Grid.Row="1" Height="40" />
  254. </cus:IconAndTextTabItem>
  255. <cus:IconAndTextTabItem
  256. x:Name="TabItemPageEdit"
  257. Header="页面"
  258. Style="{StaticResource ToolbarTabs}" />
  259. <cus:IconAndTextTabItem
  260. x:Name="TabItemConvert"
  261. Header="转换"
  262. Style="{StaticResource ToolbarTabs}" />
  263. <cus:IconAndTextTabItem
  264. x:Name="TabItemScan"
  265. Header="扫描和OCR"
  266. Style="{StaticResource ToolbarTabs}"
  267. Visibility="Collapsed">
  268. <Grid Grid.Row="1" Height="40" />
  269. </cus:IconAndTextTabItem>
  270. <cus:IconAndTextTabItem
  271. x:Name="TabItemEdit"
  272. Height="40"
  273. Header="编辑"
  274. Style="{StaticResource ToolbarTabs}"
  275. Visibility="Collapsed">
  276. <Grid Grid.Row="1" Height="40" />
  277. </cus:IconAndTextTabItem>
  278. <cus:IconAndTextTabItem
  279. x:Name="TabItemForm"
  280. Height="40"
  281. Header="表单"
  282. Style="{StaticResource ToolbarTabs}"
  283. Visibility="Collapsed">
  284. <Grid Grid.Row="1" Height="40" />
  285. </cus:IconAndTextTabItem>
  286. <cus:IconAndTextTabItem
  287. x:Name="TabItemFill"
  288. Height="40"
  289. Header="填写与签名"
  290. Style="{StaticResource ToolbarTabs}">
  291. <Grid Grid.Row="1" Height="40" />
  292. </cus:IconAndTextTabItem>
  293. <cus:IconAndTextTabItem
  294. x:Name="TabItemTool"
  295. Height="40"
  296. Header="工具"
  297. Style="{StaticResource ToolbarTabs}">
  298. <Grid Grid.Row="1" Height="40" />
  299. </cus:IconAndTextTabItem>
  300. <i:Interaction.Triggers>
  301. <i:EventTrigger EventName="SelectionChanged">
  302. <i:InvokeCommandAction Command="{Binding TabControlSelectionChangedCommand}" PassEventArgsToCommand="True" />
  303. </i:EventTrigger>
  304. </i:Interaction.Triggers>
  305. </TabControl>
  306. </Grid>
  307. <!-- 底部工具栏 -->
  308. <ContentControl Grid.Row="3" prism:RegionManager.RegionName="{Binding BottomToolRegionName}" />
  309. <!-- 专门用来显示菜单二级工具栏 -->
  310. <!-- 调整工具栏的显示图层,方便阅读模式处理 -->
  311. <ContentControl
  312. Name="ContentToolsBar"
  313. Grid.Row="{Binding GridToolRow}"
  314. prism:RegionManager.RegionName="{Binding ToolsBarContentRegionName}"
  315. Visibility="{Binding ToolsBarContentVisible}" />
  316. <ContentControl
  317. Name="ContentConverterBar"
  318. Grid.Row="{Binding GridToolRow}"
  319. prism:RegionManager.RegionName="{Binding ConverterBarContentRegionName}"
  320. Visibility="{Binding ConverterBarContentVisible}" />
  321. <ContentControl
  322. Name="TextEditContentBar"
  323. Grid.Row="{Binding GridToolRow}"
  324. prism:RegionManager.RegionName="{Binding TextEditContentRegionName}"
  325. Visibility="{Binding TextEditToolContentVisible}" />
  326. <Grid Name="DocumentView" Grid.Row="2">
  327. <Grid.ColumnDefinitions>
  328. <ColumnDefinition
  329. x:Name="BOTACloumn"
  330. Width="{Binding BOTAWidth, Mode=TwoWay}"
  331. MinWidth="48"
  332. MaxWidth="472" />
  333. <ColumnDefinition Width="auto" />
  334. <ColumnDefinition
  335. Name="ViewerColumn"
  336. Width="*"
  337. MinWidth="200" />
  338. <ColumnDefinition Name="PropertyColumn" MinWidth="0">
  339. <ColumnDefinition.Style>
  340. <Style TargetType="{x:Type ColumnDefinition}">
  341. <Style.Triggers>
  342. <DataTrigger Binding="{Binding ElementName=TbtnProperty, Path=IsChecked}" Value="True">
  343. <Setter Property="Width" Value="260" />
  344. </DataTrigger>
  345. <DataTrigger Binding="{Binding ElementName=TbtnProperty, Path=IsChecked}" Value="False">
  346. <Setter Property="Width" Value="0" />
  347. </DataTrigger>
  348. </Style.Triggers>
  349. </Style>
  350. </ColumnDefinition.Style>
  351. </ColumnDefinition>
  352. </Grid.ColumnDefinitions>
  353. <ContentControl prism:RegionManager.RegionName="{Binding BOTARegionName}" SizeChanged="ContentControl_SizeChanged" />
  354. <GridSplitter
  355. Name="BOTASplitter"
  356. Grid.Column="1"
  357. Width="3"
  358. Background="Transparent"
  359. Cursor="SizeWE"
  360. FocusVisualStyle="{x:Null}"
  361. ResizeBehavior="PreviousAndNext"
  362. ShowsPreview="True" />
  363. <Grid Name="GridViewer" Grid.Column="2">
  364. <!-- 分屏功能需要的布局 -->
  365. <Grid.RowDefinitions>
  366. <RowDefinition Height="*" />
  367. <RowDefinition Height="auto" />
  368. <RowDefinition Name="RowRight" Height="0" />
  369. </Grid.RowDefinitions>
  370. <Grid.ColumnDefinitions>
  371. <ColumnDefinition Width="*" />
  372. <ColumnDefinition Name="ColumnSplitter" Width="auto" />
  373. <ColumnDefinition Name="ColumnBottom" Width="0" />
  374. </Grid.ColumnDefinitions>
  375. <ContentControl />
  376. <ContentControl
  377. x:Name="PDFViewerContent"
  378. HorizontalAlignment="Stretch"
  379. prism:RegionManager.RegionName="{Binding ViwerRegionName}" />
  380. <ContentControl
  381. Name="SplitPDFViewer"
  382. Grid.Row="2"
  383. Grid.Column="2"
  384. prism:RegionManager.RegionName="{Binding SplitViewerRegionName}" />
  385. <GridSplitter
  386. Name="VerticalSplitter"
  387. Grid.Column="1"
  388. Width="12"
  389. Background="Gray"
  390. BorderThickness="0"
  391. ResizeBehavior="PreviousAndNext"
  392. ShowsPreview="True"
  393. Visibility="Collapsed" />
  394. <GridSplitter
  395. Name="HorizontalSplitter"
  396. Grid.Row="1"
  397. Height="12"
  398. HorizontalAlignment="Stretch"
  399. Background="Gray"
  400. BorderThickness="0"
  401. ResizeBehavior="PreviousAndNext"
  402. ShowsPreview="True"
  403. Visibility="Collapsed" />
  404. </Grid>
  405. <ContentControl
  406. x:Name="OCRViewerContent"
  407. Grid.ColumnSpan="3"
  408. HorizontalAlignment="Stretch"
  409. prism:RegionManager.RegionName="{Binding OCRViewerRegionName}"
  410. Visibility="{Binding OCRContentVisible}" />
  411. <ScrollViewer
  412. Name="Scroller"
  413. Grid.Column="4"
  414. Focusable="False"
  415. VerticalScrollBarVisibility="Auto">
  416. <ContentControl Height="{Binding ElementName=Scroller, Path=ViewportHeight}" prism:RegionManager.RegionName="{Binding PropertyRegionName}" />
  417. </ScrollViewer>
  418. <!-- 阅读页顶部提示栏区域 -->
  419. <ContentControl
  420. Grid.Column="2"
  421. Width="{Binding ElementName=PDFViewerContent, Path=Width}"
  422. VerticalAlignment="Top"
  423. prism:RegionManager.RegionName="{Binding TipContentRegionName}"
  424. Visibility="{Binding TipVisible}" />
  425. <!-- 阅读页顶部侧面提示区域 -->
  426. <ContentControl
  427. Grid.Column="2"
  428. Margin="16,8"
  429. HorizontalAlignment="Right"
  430. VerticalAlignment="Top"
  431. prism:RegionManager.RegionName="{Binding LeftTipContentRegionName}"
  432. Visibility="{Binding LeftTipVisible}" />
  433. </Grid>
  434. <!-- 用于显示页面编辑、水印、背景、标记密文等功能的区域 -->
  435. <Border
  436. Grid.Row="{Binding GridToolRow}"
  437. Grid.RowSpan="{Binding GridToolRowSpan}"
  438. BorderBrush="{StaticResource color.sys.layout.divider}"
  439. BorderThickness="0,1"
  440. Visibility="{Binding ToolContentVisible}">
  441. <ContentControl Name="ContentTool" prism:RegionManager.RegionName="{Binding ToolContentRegionName}" />
  442. </Border>
  443. <cus:LoadingControl Grid.RowSpan="3" Visibility="{Binding IsLoading}" />
  444. </Grid>
  445. </UserControl>