<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="C1Uploader_Demo.MainPage" mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480" 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:c1="http://schemas.componentone.com/winfx/2006/xaml">
    <Grid x:Name="LayoutRoot" Background="Transparent" Loaded="LayoutRoot_Loaded">
    	<Grid.RowDefinitions>
    		<RowDefinition Height="Auto" />
			<RowDefinition />  	
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition />
			<ColumnDefinition Width="Auto" />
		</Grid.ColumnDefinitions>
		
        <c1:C1FilePicker VerticalAlignment="Top" x:Name="filebox1" HorizontalAlignment="Stretch" />
        <StackPanel Orientation="Horizontal" Grid.Column="1">
        	<Button Content="Upload" x:Name="btnFileUpload" Click="btnFileUpload_Click" Width="72" Margin="10,0,0,0" />
        	<Button Width="72" Content="Reset" x:Name="btnReset" Click="btnReset_Click" Margin="10,0,0,0" />
        	<Button Width="72" Content="Abort" x:Name="btnAbort" Click="btnAbort_Click" IsEnabled="False" Margin="10,0,0,0" />
        </StackPanel>
        <Grid Height="14" HorizontalAlignment="Stretch" VerticalAlignment="Top" x:Name="progressGrid" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.4*" />
                <ColumnDefinition Width="0.6*" />
            </Grid.ColumnDefinitions>
            <Rectangle HorizontalAlignment="Stretch" VerticalAlignment="Stretch" RadiusX="2" RadiusY="2">
                <Rectangle.Fill>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FF89E278" />
                        <GradientStop Color="#FFFFFFFF" Offset="1" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
            <TextBlock HorizontalAlignment="Stretch" Text="0%" FontSize="7" TextAlignment="Center" x:Name="lblPercentage" Grid.ColumnSpan="2" />
        </Grid>
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" Grid.Row="1" Grid.ColumnSpan="2" Margin="0,10,0,0">
            <c1:C1WrapPanel x:Name="linksPanel" Margin="8,8,8,8" ItemWidth="100" />
        </ScrollViewer>
    </Grid>
</UserControl>