PDFViewerControl.xaml 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <UserControl x:Class="ComPDFKitDemo.PDFViewerControl"
  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:ComPDFKitDemo"
  7. xmlns:annotControl="clr-namespace:ComPDFKitDemo.AnnotControl"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid>
  11. <Border BorderBrush="Silver" BorderThickness="2">
  12. <Grid x:Name="DocViewerGrid" UseLayoutRounding="True">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="0"/>
  15. <ColumnDefinition Width="Auto"/>
  16. <ColumnDefinition Width="*" MinWidth="200"/>
  17. <ColumnDefinition Width="Auto"/>
  18. <ColumnDefinition Width="0" />
  19. </Grid.ColumnDefinitions>
  20. <Grid x:Name="NaviBarGrid" Grid.Column="0"></Grid>
  21. <GridSplitter x:Name="SideWindowSplitter" Grid.Column="1" ShowsPreview="True" Width="10" Visibility="Collapsed"
  22. HorizontalAlignment="Center" IsTabStop="False" Background="Silver" ResizeBehavior="PreviousAndNext"/>
  23. <Grid x:Name="PDFGrid" Grid.Column="2" Margin="0,0,0,0" UseLayoutRounding="True"/>
  24. <Grid x:Name="LoadingAnimation" Grid.Column="2" Background="#A0000000" Visibility="Collapsed">
  25. <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
  26. <StackPanel.Triggers>
  27. <EventTrigger RoutedEvent="Loaded">
  28. <EventTrigger.Actions>
  29. <BeginStoryboard>
  30. <Storyboard RepeatBehavior="Forever">
  31. <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0.2"
  32. Storyboard.TargetName="rect1" Storyboard.TargetProperty="Height"
  33. To="50" AutoReverse="True"/>
  34. <DoubleAnimation BeginTime="0:0:0.1" Duration="0:0:0.2"
  35. Storyboard.TargetName="rect2" Storyboard.TargetProperty="Height"
  36. To="50" AutoReverse="True"/>
  37. <DoubleAnimation BeginTime="0:0:0.2" Duration="0:0:0.2"
  38. Storyboard.TargetName="rect3" Storyboard.TargetProperty="Height"
  39. To="50" AutoReverse="True"/>
  40. </Storyboard>
  41. </BeginStoryboard>
  42. </EventTrigger.Actions>
  43. </EventTrigger>
  44. </StackPanel.Triggers>
  45. <Rectangle x:Name="rect1" Width="10" Height="25" Fill="Yellow"></Rectangle>
  46. <Rectangle x:Name="rect2" Width="10" Height="25" Fill="Yellow" Margin="10,0,10,0"></Rectangle>
  47. <Rectangle x:Name="rect3" Width="10" Height="25" Fill="Yellow"></Rectangle>
  48. </StackPanel>
  49. </Grid>
  50. <GridSplitter x:Name="AnnotSplitter" Grid.Column="3" ShowsPreview="True" Width="10" Visibility="Collapsed"
  51. HorizontalAlignment="Center" IsTabStop="False" Background="Silver" ResizeBehavior="PreviousAndNext"/>
  52. <Grid x:Name="AnnotCtrlGrid" Grid.Column="4"/>
  53. </Grid>
  54. </Border>
  55. </Grid>
  56. </UserControl>