<Window x:Class="WpfApp1.CharttoImage.ChartToImageSample"
        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:local="clr-namespace:WpfApp1.CharttoImage"
        mc:Ignorable="d"
        Title="ChartToImageSample" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>
        <local:ScanGraph x:Name="scanGraph" />
        <StackPanel Grid.Row="1" Orientation="Horizontal" >
            <Button Content="导出当前" Margin="5" Padding="10,5" Click="btnOutput1Click"/>
            <Button Content="导出后台" Margin="5" Padding="10,5" Click="btnOutput2Click"/>
        </StackPanel>
    </Grid>
</Window>
