ViewContent.xaml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  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:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:PDF_Office.Views"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. d:DesignHeight="450"
  12. d:DesignWidth="800"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <i:Interaction.Triggers>
  16. <i:EventTrigger EventName="Loaded">
  17. <prism:InvokeCommandAction Command="{Binding}"/>
  18. </i:EventTrigger>
  19. </i:Interaction.Triggers>
  20. <UserControl.Resources>
  21. <ResourceDictionary />
  22. </UserControl.Resources>
  23. <Grid>
  24. <Grid.RowDefinitions>
  25. <RowDefinition Name="HeadRow" Height="40" />
  26. <RowDefinition Name="ToolRow" Height="40" />
  27. <RowDefinition Height="*" />
  28. <RowDefinition Height="32" />
  29. </Grid.RowDefinitions>
  30. <!-- 左边菜单按钮 -->
  31. <StackPanel HorizontalAlignment="Left" Orientation="Horizontal">
  32. <Button
  33. Width="16"
  34. Height="16"
  35. Margin="8"
  36. ToolTip="File" />
  37. <Button
  38. Width="16"
  39. Height="16"
  40. Margin="8"
  41. ToolTip="Save" />
  42. <Button
  43. Width="16"
  44. Height="16"
  45. Margin="8"
  46. ToolTip="Undo" />
  47. <Button
  48. Width="16"
  49. Height="16"
  50. Margin="8"
  51. ToolTip="Redo" />
  52. </StackPanel>
  53. <!-- 右边菜单按钮 -->
  54. <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
  55. <Button
  56. Width="16"
  57. Height="16"
  58. Margin="8"
  59. ToolTip="Print" />
  60. <Button
  61. Width="16"
  62. Height="16"
  63. Margin="8"
  64. ToolTip="Share" />
  65. <Button
  66. Width="16"
  67. Height="16"
  68. Margin="8"
  69. ToolTip="Property" />
  70. </StackPanel>
  71. <TabControl
  72. x:Name="ToolTabControl"
  73. Grid.Row="0"
  74. Grid.RowSpan="2"
  75. HorizontalAlignment="Center"
  76. VerticalAlignment="Top"
  77. BorderThickness="0"
  78. Style="{StaticResource TabControlWithUnderLineStyle}">
  79. <TabItem Height="40" Header="注释">
  80. <Grid Grid.Row="1" Height="40" />
  81. </TabItem>
  82. <TabItem Header="页面" />
  83. <TabItem Header="转换" />
  84. <TabItem Header="扫描和OCR">
  85. <Grid Grid.Row="1" Height="40" />
  86. </TabItem>
  87. <TabItem Height="40" Header="编辑">
  88. <Grid Grid.Row="1" Height="40" />
  89. </TabItem>
  90. <TabItem Height="40" Header="表单">
  91. <Grid Grid.Row="1" Height="40" />
  92. </TabItem>
  93. <TabItem Height="40" Header="填写与签名">
  94. <Grid Grid.Row="1" Height="40" />
  95. </TabItem>
  96. <TabItem Height="40" Header="工具">
  97. <Grid Grid.Row="1" Height="40" />
  98. </TabItem>
  99. </TabControl>
  100. <Grid Name="DocumentView" Grid.Row="2">
  101. <Grid.ColumnDefinitions>
  102. <ColumnDefinition
  103. x:Name="BOTACloumn"
  104. Width="48"
  105. MinWidth="48"
  106. MaxWidth="400" />
  107. <ColumnDefinition Width="12" />
  108. <ColumnDefinition
  109. Name="ViewerColumn"
  110. Width="*"
  111. MinWidth="200" />
  112. <ColumnDefinition Width="12" />
  113. <ColumnDefinition Name="PropertyColumn" Width="0" />
  114. </Grid.ColumnDefinitions>
  115. <ContentControl prism:RegionManager.RegionName="{Binding BOTARegionName}" />
  116. <GridSplitter
  117. Grid.Column="1"
  118. Width="12"
  119. FocusVisualStyle="{x:Null}"
  120. ResizeBehavior="PreviousAndNext"
  121. ShowsPreview="True" />
  122. <ContentControl
  123. x:Name="PDFViewerContent"
  124. Grid.Column="2"
  125. HorizontalAlignment="Stretch"
  126. prism:RegionManager.RegionName="{Binding ViwerRegionName}" />
  127. <Button Grid.Column="3" />
  128. <ContentControl Grid.Column="4" prism:RegionManager.RegionName="{Binding PropertyRegionName}" />
  129. </Grid>
  130. <local:BottomToolContent Grid.Row="3" />
  131. <ContentControl
  132. Grid.Row="2"
  133. Grid.RowSpan="2"
  134. Visibility="Collapsed">
  135. <Grid Background="Red" />
  136. </ContentControl>
  137. </Grid>
  138. </UserControl>