<UserControl x:Class="Q3.SL.Demos.Demos.PDFViewer"
             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"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             mc:Ignorable="d"
             d:DesignHeight="600"
             d:DesignWidth="800">

    <Grid x:Name="LayoutRoot"
          Background="White">
        <Border HorizontalAlignment="Center"
                VerticalAlignment="Center"
                Width="700"
                Height="400"
                Background="{StaticResource MainBrush}"
                BorderThickness="1"
                BorderBrush="{StaticResource BasicBrush}">
            <Border.Effect>
                <DropShadowEffect BlurRadius="5"
                                  Color="Black"
                                  ShadowDepth="5"
                                  Opacity=".5" />
            </Border.Effect>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="60" />
                    <RowDefinition />
                    <RowDefinition Height="40" />
                </Grid.RowDefinitions>
                <TextBlock Text="Invoice Viewer"
                           Style="{StaticResource zTitleBlockStyle}" />
                
                <!-- This would be a great place for a PDF viewer, if only we had one... -->

                <telerik:RadPdfViewer x:Name="xPDF" Margin="5"
                                      Grid.Row="1" />

                <telerik:RadButton Content="Load Local PDF"
                                   Click="RadButton_Click"
                                   Grid.Row="2"
                                   HorizontalAlignment="Right"
                                   Margin="5" />
            </Grid>
        </Border>
    </Grid>
</UserControl>
