PDFViewControl.xaml 1.8 KB

12345678910111213141516171819202122232425
  1. <UserControl x:Class="Compdfkit_Tools.PDFControl.PDFViewControl"
  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. mc:Ignorable="d"
  7. d:DesignHeight="450" d:DesignWidth="800">
  8. <Grid x:Name="ViewToolGrid">
  9. <Grid.ColumnDefinitions>
  10. <ColumnDefinition Tag="ViewerTool" Width="*"/>
  11. <ColumnDefinition Width="0"/>
  12. <ColumnDefinition Tag="SplitViewerTool" Width="0"/>
  13. </Grid.ColumnDefinitions>
  14. <Grid.RowDefinitions>
  15. <RowDefinition Tag="ViewerTool" Height="*"/>
  16. <RowDefinition Height="0"/>
  17. <RowDefinition Tag="SplitViewerTool" Height="0"/>
  18. </Grid.RowDefinitions>
  19. <Border Tag="ViewerTool" MouseDown="PDFView_MouseDown" MinWidth="20" MinHeight="20" x:Name="PDFView" Grid.Row="0" Grid.Column="0"/>
  20. <GridSplitter x:Name="VerticalSplitter" ResizeDirection="Columns" HorizontalAlignment="Stretch" Grid.Column="1" Width="15" Background="LightGray" Visibility="Collapsed"/>
  21. <GridSplitter x:Name="HorizontalSplitter" ResizeDirection="Rows" VerticalAlignment="Stretch" Grid.Row="1" Width="{Binding ElementName=ViewToolGrid,Path=ActualWidth}" Height="15" Background="LightGray" Visibility="Collapsed"/>
  22. <Border Tag="SplitViewerTool" MouseDown="PDFView_MouseDown" MinWidth="20" x:Name="VerticalView" Grid.Row="0" Grid.Column="2"/>
  23. <Border Tag="SplitViewerTool" MouseDown="PDFView_MouseDown" MinHeight="20" x:Name="HorizontalView" Grid.Column="0" Grid.Row="2" Visibility="Collapsed"/>
  24. </Grid>
  25. </UserControl>