<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="Reports.MainPage" 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">

    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <TextBlock Text="Select Report: " VerticalAlignment="Center" />
            <c1:C1ComboBox x:Name="reports" MaxDropDownHeight="700" Grid.Column="1" />
            <StackPanel Orientation="Horizontal" Grid.Column="2" VerticalAlignment="Center">
                <RadioButton Content="PDF" GroupName="format" x:Name="pdfFormat" IsChecked="True" Click="FormatClick" Margin="10,0" />
                <RadioButton Content="HTML" GroupName="format" Click="FormatClick" />
            </StackPanel>
        </Grid>

        <c1:C1ReportViewer x:Name="reportViewer" Grid.Row="1" ViewMode="FitWidth" Margin="0 10 0 0" />

        <Grid x:Name="loadingReport" Background="#CCFFFFFF" Grid.Row="1" Visibility="Collapsed">
            <TextBlock Text="Loading..." HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" />
        </Grid>
    </Grid>
</UserControl>