<Page x:Class="WSDDBBrowser.PgOutput"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:WSDDBBrowser"
              xmlns:controls="http://metro.mahapps.com/winfx/xaml/controls"
        xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="PageOutput">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="auto"/>
            </Grid.ColumnDefinitions>

            <StackPanel Orientation="Horizontal">
                <StackPanel Orientation="Vertical" Margin="{StaticResource ControlMargin}">
                    <TextBlock Text="报表输出" FontSize="24" Margin="{StaticResource ControlMargin}"/>

                    <StackPanel Orientation="Horizontal">
                        <Button Width="140" Margin="{StaticResource ControlMargin}" Content="输出"  Click="ButtonOutput_Click" Style="{DynamicResource AccentedSquareButtonStyle}" />
                    </StackPanel>
                </StackPanel>
            </StackPanel>
            <Button Grid.Column="1" VerticalAlignment="Top" HorizontalAlignment="Right" Style="{StaticResource AccentCircleButtonStyle}" Margin="5,5,5,-29" Click="ButtonBack_Click">
                <iconPacks:PackIconEntypo Width="30" Height="30"
                                           Kind="Back" />
            </Button>
        </Grid>

        <ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Visible" Margin="{StaticResource ControlMargin}">
            <StackPanel Background="White">
                <TextBlock Text="报表内的趋势图" FontSize="20" Margin="{StaticResource ControlMargin}"/>
                <StackPanel x:Name="sp" Background="White">

                </StackPanel>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</Page>