<Page x:Class="ThickTcpUiInWindow.Page_CurveModify"
      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:Chr="clr-namespace:System.Windows.Forms.DataVisualization.Charting;assembly=System.Windows.Forms.DataVisualization"
                  xmlns:local="clr-namespace:ThickTcpUiInWindow"   
      mc:Ignorable="d" 
      d:DesignHeight="768" d:DesignWidth="1024"
            Loaded="Page_Loaded"
      Unloaded="Page_Unloaded"
      Background="White"
	Title="Page_Curve">
    <Page.Resources>
        <ResourceDictionary>
            <local:CurveTypeConverter x:Key="curvetype2boolconv" />
            <local:CurveCorrectWayConverter x:Key="curvecorrway2boolconv" />
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
                <ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Converter/Dictionary_MyConv.xaml"/>
                <!--<ResourceDictionary Source="pack://application:,,,/ThickTcpUiInWindow;component/Culture/StringResource.zh-CN.xaml"/>-->
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Page.Resources>
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <StackPanel Orientation="Horizontal" Background="{StaticResource Background_Title}">
            <Button Style="{StaticResource ButtonStyle_back2}" Command="BrowseBack"/>
            <TextBlock Style="{StaticResource TextBlockStyle_Title}"  Text="{DynamicResource strCorrectionADCurve}"/>
        </StackPanel>
        <Grid Grid.Row="1" Margin="0,5,0,5">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto" />
                <ColumnDefinition Width="784*" />
            </Grid.ColumnDefinitions>
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="auto" />
                    <RowDefinition Height="247*" />
                    <RowDefinition Height="auto" />
                </Grid.RowDefinitions>
                <StackPanel Orientation="Vertical"></StackPanel>
                <StackPanel Grid.Row="2" Margin="0,5">
                    <Button Content="{DynamicResource strSetRevised}" Style="{StaticResource ResourceKey=ButtonStyle2}" Click="button_setRevised_Click" Width="210" />
                    <Button Content="{DynamicResource strScaling}" Style="{StaticResource ResourceKey=ButtonStyle2}" Click="button_scale_Click" Width="210" />
                    <Button Content="{DynamicResource strApply}" Style="{StaticResource ResourceKey=ButtonStyle2}" Click="button_apply_Click" Width="210" />
                </StackPanel>

            </Grid>
            <WindowsFormsHost Grid.Column="1" Margin="5">
                <Chr:Chart x:Name="chart1"/>
            </WindowsFormsHost>
        </Grid>
    </Grid>
</Page>
