1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <UserControl x:Class="ComPDFKitDemo.PDFViewerControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:ComPDFKitDemo"
- xmlns:annotControl="clr-namespace:ComPDFKitDemo.AnnotControl"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <Grid>
- <Border BorderBrush="Silver" BorderThickness="2">
- <Grid x:Name="DocViewerGrid" UseLayoutRounding="True">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="*" MinWidth="200"/>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition Width="0" />
- </Grid.ColumnDefinitions>
- <Grid x:Name="NaviBarGrid" Grid.Column="0"></Grid>
- <GridSplitter x:Name="SideWindowSplitter" Grid.Column="1" ShowsPreview="True" Width="10" Visibility="Collapsed"
- HorizontalAlignment="Center" IsTabStop="False" Background="Silver" ResizeBehavior="PreviousAndNext"/>
- <Grid x:Name="PDFGrid" Grid.Column="2" Margin="0,0,0,0" UseLayoutRounding="True"/>
- <Grid x:Name="LoadingAnimation" Grid.Column="2" Background="#A0000000" Visibility="Collapsed">
- <StackPanel Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
- <StackPanel.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <EventTrigger.Actions>
- <BeginStoryboard>
- <Storyboard RepeatBehavior="Forever">
- <DoubleAnimation BeginTime="0:0:0" Duration="0:0:0.2"
- Storyboard.TargetName="rect1" Storyboard.TargetProperty="Height"
- To="50" AutoReverse="True"/>
- <DoubleAnimation BeginTime="0:0:0.1" Duration="0:0:0.2"
- Storyboard.TargetName="rect2" Storyboard.TargetProperty="Height"
- To="50" AutoReverse="True"/>
- <DoubleAnimation BeginTime="0:0:0.2" Duration="0:0:0.2"
- Storyboard.TargetName="rect3" Storyboard.TargetProperty="Height"
- To="50" AutoReverse="True"/>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger.Actions>
- </EventTrigger>
- </StackPanel.Triggers>
- <Rectangle x:Name="rect1" Width="10" Height="25" Fill="Yellow"></Rectangle>
- <Rectangle x:Name="rect2" Width="10" Height="25" Fill="Yellow" Margin="10,0,10,0"></Rectangle>
- <Rectangle x:Name="rect3" Width="10" Height="25" Fill="Yellow"></Rectangle>
- </StackPanel>
- </Grid>
- <GridSplitter x:Name="AnnotSplitter" Grid.Column="3" ShowsPreview="True" Width="10" Visibility="Collapsed"
- HorizontalAlignment="Center" IsTabStop="False" Background="Silver" ResizeBehavior="PreviousAndNext"/>
- <Grid x:Name="AnnotCtrlGrid" Grid.Column="4"/>
- </Grid>
- </Border>
- </Grid>
- </UserControl>
|