ReadViewContent.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <UserControl
  2. x:Class="PDF_Office.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_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.PropertyPanel.ViewModular"
  11. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  12. xmlns:prism="http://prismlibrary.com/"
  13. xmlns:viewmodels="clr-namespace:PDF_Office.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. <i:Interaction.Triggers>
  21. <i:EventTrigger EventName="Loaded">
  22. <prism:InvokeCommandAction Command="{Binding Load}" />
  23. </i:EventTrigger>
  24. </i:Interaction.Triggers>
  25. <Grid>
  26. <ContentControl
  27. x:Name="PDFViewerContent"
  28. HorizontalAlignment="Stretch"
  29. prism:RegionManager.RegionName="{Binding ReadRegionName}" />
  30. <!--阅读模式下的页面控件-->
  31. <ContentControl
  32. x:Name="ReadModeContent"
  33. Height="44"
  34. Margin="0,0,0,5"
  35. HorizontalAlignment="Center"
  36. VerticalAlignment="Bottom"
  37. prism:RegionManager.RegionName="{Binding ReadModeRegionName}"
  38. MouseEnter="RectangleReadMode_MouseEnter"
  39. MouseLeave="ReadModeContent_MouseLeave"
  40. Visibility="{Binding ReadModeContentVisibility}" />
  41. <Rectangle
  42. x:Name="RectangleReadMode"
  43. Width="{Binding ActualWidth, ElementName=ReadModeContent, Mode=OneWay}"
  44. Height="44"
  45. Margin="0,0,0,5"
  46. HorizontalAlignment="Center"
  47. VerticalAlignment="Bottom"
  48. Fill="Transparent"
  49. MouseEnter="RectangleReadMode_MouseEnter"
  50. Visibility="{Binding RectangleReadModeVisibility}" />
  51. </Grid>
  52. </UserControl>