<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="PdfPassword.MainPage" mc:Ignorable="d" d:DesignHeight="350" d:DesignWidth="600" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:c1="http://schemas.componentone.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006">

  <Grid x:Name="LayoutRoot" Background="White">
    <Grid.RowDefinitions>
      <RowDefinition Height="Auto" />
      <RowDefinition Height="Auto" />
      <RowDefinition />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
      <ColumnDefinition Width="*" />
      <ColumnDefinition Width="2*" />
    </Grid.ColumnDefinitions>

    <StackPanel Orientation="Horizontal" Grid.ColumnSpan="2">
      <TextBlock Text="ComponentOne C1PdfViewer " FontSize="24" />
      <TextBlock Text="Open password-protected Pdf files." VerticalAlignment="Bottom" TextWrapping="Wrap" />
    </StackPanel>
    
    <Button Name="_btnCreate" Content="Create Pdf..." Grid.Row="1" Width="80" Margin="6" HorizontalAlignment="Left" />
    <Button Name="_btnOpen" Content="Open Pdf..." Grid.Row="1" Grid.Column="1" Width="80" Margin="6" HorizontalAlignment="Left" />

    <Grid Name="_contentGrid" Grid.Row="2">
      <TextBlock Text="Here are some rectangles:" Margin="6,6,0,0" FontSize="24" TextWrapping="Wrap" Height="68" VerticalAlignment="Top" HorizontalAlignment="Left" Width="253" />
      <Rectangle Fill="Red" Margin="39,93,0,0" Height="112" VerticalAlignment="Top" HorizontalAlignment="Left" Width="139" />
      <Rectangle Fill="Green" Margin="62,114,0,0" HorizontalAlignment="Left" Width="139" Height="112" VerticalAlignment="Top" />
      <Rectangle Fill="Blue" Margin="98,132,0,0" HorizontalAlignment="Left" Width="139" Height="112" VerticalAlignment="Top" />
      <Ellipse Fill="Gold" Margin="98,132,0,0" HorizontalAlignment="Left" Width="139" Height="112" VerticalAlignment="Top" />
      <TextBlock Text="Note: the password is 'thePassword'." Margin="6,283,0,0" HorizontalAlignment="Left" Width="217" Height="24" VerticalAlignment="Top" />
    </Grid>

    <c1:C1PdfViewer Name="_viewer" Grid.Row="2" Grid.Column="1" />

  </Grid>
</UserControl>