ReadViewContent.xaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <UserControl
  2. x:Class="PDF_Master.Views.PropertyPanel.ViewModular.ReadViewContent"
  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_Master.DataConvert"
  7. xmlns:cus="clr-namespace:PDF_Master.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_Master.Views.PropertyPanel.ViewModular"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. xmlns:viewmodels="clr-namespace:PDF_Master.ViewModels.PropertyPanel.ViewModular"
  14. d:DataContext="{d:DesignInstance Type=viewmodels:ReadViewContentViewModel}"
  15. d:DesignHeight="450"
  16. d:DesignWidth="800"
  17. prism:ViewModelLocator.AutoWireViewModel="True"
  18. KeyDown="UserControl_KeyDown"
  19. mc:Ignorable="d">
  20. <Grid>
  21. <ContentControl
  22. x:Name="PDFViewerContent"
  23. HorizontalAlignment="Stretch"
  24. prism:RegionManager.RegionName="{Binding ReadRegionName}" />
  25. <Border
  26. Width="316"
  27. Height="40"
  28. VerticalAlignment="Top"
  29. Background="{StaticResource color.sys.layout.dark.bg}"
  30. CornerRadius="4"
  31. Visibility="{Binding PressEscTip}">
  32. <TextBlock
  33. x:Name="PressEscTip"
  34. Padding="11"
  35. Foreground="#FFFFFFFF"
  36. Text="{Binding T_ESCReadMode}"
  37. TextAlignment="Center" />
  38. </Border>
  39. <!-- 阅读模式下的页面控件 -->
  40. <Border
  41. Height="44"
  42. Margin="0,0,0,5"
  43. HorizontalAlignment="Center"
  44. VerticalAlignment="Bottom"
  45. CornerRadius="4"
  46. MouseEnter="RectangleReadMode_MouseEnter"
  47. MouseLeave="ReadModeContent_MouseLeave"
  48. Visibility="{Binding ReadModeContentVisibility}">
  49. <ContentControl x:Name="ReadModeContent" prism:RegionManager.RegionName="{Binding ReadModeRegionName}" />
  50. </Border>
  51. <Rectangle
  52. x:Name="RectangleReadMode"
  53. Width="{Binding ActualWidth, ElementName=ReadModeContent, Mode=OneWay}"
  54. Height="44"
  55. Margin="0,0,0,5"
  56. HorizontalAlignment="Center"
  57. VerticalAlignment="Bottom"
  58. Fill="Transparent"
  59. MouseEnter="RectangleReadMode_MouseEnter"
  60. Visibility="{Binding RectangleReadModeVisibility}" />
  61. </Grid>
  62. </UserControl>