<Page
    x:Class="PdfSamples.RenderUIPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:PdfSamples"
    xmlns:c1="using:C1.Xaml"
    xmlns:c1pdf="using:C1.Xaml.PdfViewer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">
    <Page.Resources>
        <Style TargetType="c1pdf:C1PdfViewer">
            <Setter Property="Background" Value="Gray" />
            <Setter Property="BorderThickness" Value="0" />
        </Style>
    </Page.Resources>
    <Grid x:Name="layoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="48*"/>
            <ColumnDefinition Width="52*"/>
        </Grid.ColumnDefinitions>
        <ScrollViewer Grid.Row="1" Padding="0 3">
            <Grid x:Name="panel">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition/>
                    <ColumnDefinition Width="Auto"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Border Background="#008299" Margin="5" Padding="10" Grid.RowSpan="2">
                    <StackPanel>
                        <Image Source="../Assets/pic.jpg" Width="300" Margin="0 0 0 10" Stretch="Uniform" />
                        <RichTextBlock Height="70" Width="300" >
                            <Paragraph>                                
                                <Bold>
                                    <Span Foreground="White" FontSize="18">
                                        <Run x:Uid="/PdfSamplesLib/Resources/RichTextBlock" />
                                    </Span>
                                </Bold>
                                <Span>
                                    <Run x:Uid="/PdfSamplesLib/Resources/RunText1" />
                                </Span>
                                <Span Foreground="White" FontSize="14">
                                    <Run x:Uid="/PdfSamplesLib/Resources/RunText2" />
                                </Span>
                                <Span>
                                    <Run x:Uid="/PdfSamplesLib/Resources/RunText3" />
                                </Span>
                            </Paragraph>
                        </RichTextBlock>
                    </StackPanel>
                </Border>
                <Border Grid.Column="1" Grid.ColumnSpan="2" Background="#8c0095" Margin="5" Padding="10">
                    <ToggleSwitch Grid.Column="1" IsOn="True" x:Uid="/PdfSamplesLib/Resources/ToggleSwitch" Grid.Row="1"/>
                </Border>
                <Border Grid.Column="1" Grid.Row="1" Background="#D24726" Margin="5" Padding="10">
                    <ListBox Width="200">
                        <ListBoxItem x:Uid="/PdfSamplesLib/Resources/ListBoxItem1" />
                        <ListBoxItem x:Uid="/PdfSamplesLib/Resources/ListBoxItem2" />
                        <ListBoxItem x:Uid="/PdfSamplesLib/Resources/ListBoxItem3" />
                    </ListBox>
                </Border>
                <Border Grid.ColumnSpan="3" Grid.Row="2" Background="#094AB2" Margin="5" Padding="10">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition/>
                            <ColumnDefinition/>
                        </Grid.ColumnDefinitions>
                        <StackPanel>
                            <TextBox HorizontalAlignment="Left" x:Uid="/PdfSamplesLib/Resources/TextBoxTB" Width="200" />
                            <CheckBox x:Uid="/PdfSamplesLib/Resources/CheckBoxCB" IsChecked="True" Margin="0 10"  />
                            <RadioButton x:Uid="/PdfSamplesLib/Resources/RadioButton" IsChecked="True" />
                        </StackPanel>
                        <StackPanel Grid.Column="1">
                            <ComboBox HorizontalAlignment="Left" VerticalAlignment="Top" Width="200">
                                <ComboBoxItem x:Uid="/PdfSamplesLib/Resources/ComboBoxItem1" Content="Item 1"/>
                                <ComboBoxItem x:Uid="/PdfSamplesLib/Resources/ComboBoxItem2" Content="Item 2" Margin="0 10 0 0"/>
                            </ComboBox>
                            <HyperlinkButton x:Uid="/PdfSamplesLib/Resources/HyperlinkButton" />
                        </StackPanel>
                    </Grid>
                </Border>
                <Border Grid.Column="3" Grid.RowSpan="2" Grid.Row="1" Background="#008B00" Margin="5" Padding="0 10">
                    <Slider Orientation="Vertical" Grid.Row="1" Value="60" />
                </Border>
            </Grid>
        </ScrollViewer>

        <TextBlock x:Uid="/PdfSamplesLib/Resources/TextBlockTB1" VerticalAlignment="Center" FontSize="16"/>
        <TextBlock x:Uid="/PdfSamplesLib/Resources/TextBlockTB2" Grid.Column="1" VerticalAlignment="Center" FontSize="16"/>
        <Button x:Name="btnRender" x:Uid="/PdfSamplesLib/Resources/RenderBT" Click="btnRender_Click" Grid.ColumnSpan="2" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="5"/>
        <c1pdf:C1PdfViewer x:Name="c1PdfViewer1" Grid.Column="1" Grid.Row="1" ViewMode="FitWidth" />
        <ProgressRing x:Name="progressRing" Grid.Column="1" Grid.Row="1"/>
    </Grid>
</Page>