<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="PdfCreator.Basic" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Style x:Key="borderStyle" TargetType="Border">
            <Setter Property="BorderThickness" Value="0 0 0 2" />
            <Setter Property="BorderBrush" Value="#FF7187AD" />
            <Setter Property="Background" Value="Transparent" />
            <Setter Property="CornerRadius" Value="0" />
            <Setter Property="Height" Value="40" />
        </Style>
        <Style x:Key="btnStyle" TargetType="Button">
            <Setter Property="Margin" Value="8" />
            <Setter Property="Width" Value="120" />
            <Setter Property="Height" Value="28" />
            <Setter Property="VerticalAlignment" Value="Center" />
        </Style>
    </UserControl.Resources>
    
    <ScrollViewer BorderBrush="Transparent" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled">
        <Grid Margin="10 2 10 2" x:Name="Panel" VerticalAlignment="Center">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="10" />
                <RowDefinition />
                <RowDefinition Height="10" />
                <RowDefinition />
                <RowDefinition Height="10" />
                <RowDefinition />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Button x:Name="btnText" Style="{StaticResource btnStyle}" Grid.Row="0" Content="Text" Margin="0,0,5,0" />
			<Border Grid.Row="0" Grid.Column="1">
            	<TextBlock Text="Shows how to position and align text." />
			</Border>
            <Button x:Name="btnImages" Style="{StaticResource btnStyle}" Grid.Row="2" Content="Images" Margin="0,0,5,0" />
			<Border Grid.Row="2" Grid.Column="1">
            	<TextBlock Text="Creates a document with some images. Shows how to align and scale images." />
			</Border>
            <Button x:Name="btnGraphics" Style="{StaticResource btnStyle}" Grid.Row="4" Content="Graphics" Margin="0,0,5,0" />
			<Border Grid.Row="4" Grid.Column="1">
            	<TextBlock Text="Shows how to use graphics primitives to draw rectangles, lines, ellipses, etc." />
			</Border>
            <Button x:Name="btnQuotes" Style="{StaticResource btnStyle}" Grid.Row="6" Content="Quotes" Margin="0,0,5,0" />
			<Border Grid.Row="6" Grid.Column="1">
            	<TextBlock Text="Creates a document with quotations from www.quoteland.com. Shows DrawString, MeasureString, NewPage." />
			</Border>	
        </Grid>
    </ScrollViewer>
</UserControl>