<UserControl x:Class="PdfSharp.Windows.PagePreview"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="407" d:DesignWidth="602">
  <Grid x:Name="LayoutRoot" Background="White">
    <Border Margin="0">
      <ScrollViewer HorizontalScrollBarVisibility="Visible" VerticalScrollBarVisibility="Visible" Background="#A0A0A0" >
        <Grid>
          <Border Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="3 3 6 6">
            <Border Background="#F8F8FF" BorderBrush="#111111" BorderThickness="1" Visibility="{Binding PageVisibility}">
              <Border.Effect>
                <DropShadowEffect Opacity="0.6" />
              </Border.Effect>
              <Grid x:Name="canvasGrid" Width="210" Height="297" Background="#FCFCFF">
                <Canvas x:Name="canvas" Margin="0" Background="Transparent">
                  <Canvas.RenderTransform>
                    <ScaleTransform x:Name="scaleTransform" ScaleX="{Binding CanvasScaleX}" ScaleY="{Binding CanvasScaleY}"/>
                  </Canvas.RenderTransform>
                </Canvas>
              </Grid>
            </Border>
          </Border>
        </Grid>
      </ScrollViewer>
    </Border>
  </Grid>
</UserControl>
