CPDFViewerTool.xaml 1.1 KB

123456789101112131415161718
  1. <UserControl x:Class="ComPDFKit.Tool.CPDFViewerTool"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ComPDFKit.Tool"
  7. xmlns:compdfkitviewer="clr-namespace:ComPDFKitViewer;assembly=ComPDFKit.Viewer"
  8. mc:Ignorable="d"
  9. Focusable="True"
  10. Loaded="CPDFViewerTool_Loaded"
  11. Unloaded="CPDFViewerTool_Unloaded"
  12. >
  13. <ScrollViewer Name="ScrollContainer" Focusable="False" CanContentScroll="True"
  14. HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto"
  15. MouseUp="ScrollViewer_MouseUp" MouseDown="ScrollViewer_MouseDown" ScrollChanged="ScrollViewer_ScrollChanged">
  16. <compdfkitviewer:CPDFViewer x:Name="PDFViewer"></compdfkitviewer:CPDFViewer>
  17. </ScrollViewer>
  18. </UserControl>