ReadViewContent.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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,16"
  43. HorizontalAlignment="Center"
  44. VerticalAlignment="Bottom"
  45. CornerRadius="4"
  46. Background="Transparent"
  47. MouseEnter="RectangleReadMode_MouseEnter"
  48. MouseLeave="ReadModeContent_MouseLeave"
  49. Visibility="{Binding ReadModeContentVisibility}">
  50. <ContentControl x:Name="ReadModeContent" prism:RegionManager.RegionName="{Binding ReadModeRegionName}" />
  51. </Border>
  52. <Rectangle
  53. x:Name="RectangleReadMode"
  54. Width="{Binding ActualWidth, ElementName=ReadModeContent, Mode=OneWay}"
  55. Height="44"
  56. Margin="0,0,0,5"
  57. HorizontalAlignment="Center"
  58. VerticalAlignment="Bottom"
  59. Fill="Transparent"
  60. MouseEnter="RectangleReadMode_MouseEnter"
  61. Visibility="{Binding RectangleReadModeVisibility}" />
  62. </Grid>
  63. </UserControl>